summaryrefslogtreecommitdiff
path: root/src/resources
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-07-05 22:33:12 +0300
committerAndrei Karas <akaras@inbox.ru>2011-07-05 22:33:12 +0300
commita5e45cef061b921981012176ad7dc9cb5e03dacc (patch)
tree80780eec88ab13b2a05269f70fc84bf3a67780ce /src/resources
parent710a37891458aaa3b924286950250500fb7b3fc3 (diff)
downloadmanaverse-a5e45cef061b921981012176ad7dc9cb5e03dacc.tar.gz
manaverse-a5e45cef061b921981012176ad7dc9cb5e03dacc.tar.bz2
manaverse-a5e45cef061b921981012176ad7dc9cb5e03dacc.tar.xz
manaverse-a5e45cef061b921981012176ad7dc9cb5e03dacc.zip
Fix memory leak in shop window, add missing initialisation to BeingCacheEntry.
Small code style fix.
Diffstat (limited to 'src/resources')
-rw-r--r--src/resources/resourcemanager.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/resources/resourcemanager.cpp b/src/resources/resourcemanager.cpp
index 78ca6a284..ad188ec1c 100644
--- a/src/resources/resourcemanager.cpp
+++ b/src/resources/resourcemanager.cpp
@@ -752,7 +752,8 @@ Image *ResourceManager::getRescaled(Image *image, int width, int height)
if (!image)
return 0;
- std::string idPath = image->getIdPath() + strprintf("_rescaled%dx%d", width, height);
+ std::string idPath = image->getIdPath() + strprintf(
+ "_rescaled%dx%d", width, height);
RescaledLoader l = { this, image, width, height };
Image *img = static_cast<Image*>(get(idPath, RescaledLoader::load, &l));
return img;