diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-07-05 22:33:12 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-07-05 22:33:12 +0300 |
commit | a5e45cef061b921981012176ad7dc9cb5e03dacc (patch) | |
tree | 80780eec88ab13b2a05269f70fc84bf3a67780ce /src/resources/resourcemanager.cpp | |
parent | 710a37891458aaa3b924286950250500fb7b3fc3 (diff) | |
download | manaplus-a5e45cef061b921981012176ad7dc9cb5e03dacc.tar.gz manaplus-a5e45cef061b921981012176ad7dc9cb5e03dacc.tar.bz2 manaplus-a5e45cef061b921981012176ad7dc9cb5e03dacc.tar.xz manaplus-a5e45cef061b921981012176ad7dc9cb5e03dacc.zip |
Fix memory leak in shop window, add missing initialisation to BeingCacheEntry.
Small code style fix.
Diffstat (limited to 'src/resources/resourcemanager.cpp')
-rw-r--r-- | src/resources/resourcemanager.cpp | 3 |
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; |