diff options
author | Andrei Karas <akaras@inbox.ru> | 2010-06-06 00:24:46 +0300 |
---|---|---|
committer | Thorbjørn Lindeijer <thorbjorn@lindeijer.nl> | 2010-06-05 23:48:45 +0200 |
commit | f6583ac4b10f9e703fe1d44a1847444d34e09ab6 (patch) | |
tree | 9d801ddbf15a2825c64b4974e3d12b765e8c9465 /src/gui | |
parent | 18c1842f1e566390b4d93c94628db49c4895c881 (diff) | |
download | mana-client-f6583ac4b10f9e703fe1d44a1847444d34e09ab6.tar.gz mana-client-f6583ac4b10f9e703fe1d44a1847444d34e09ab6.tar.bz2 mana-client-f6583ac4b10f9e703fe1d44a1847444d34e09ab6.tar.xz mana-client-f6583ac4b10f9e703fe1d44a1847444d34e09ab6.zip |
Fix memory leak in minimap
Reviewed-by: Thorbjørn Lindeijer
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/minimap.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/gui/minimap.cpp b/src/gui/minimap.cpp index 53d58d2e..35844f64 100644 --- a/src/gui/minimap.cpp +++ b/src/gui/minimap.cpp @@ -98,15 +98,13 @@ void Minimap::setMap(Map *map) if (map) { std::string tempname = - "graphics/minimaps/"+(*map->getFilename())+".png"; + "graphics/minimaps/" + map->getFilename() + ".png"; ResourceManager *resman = ResourceManager::getInstance(); minimapName = map->getProperty("minimap"); if (minimapName.empty() && resman->exists(tempname)) - { minimapName = tempname; - } mMapImage = resman->getImage(minimapName); } |