diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-05-25 02:51:51 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-05-25 02:51:51 +0300 |
commit | 8d80b897b5863372649de9b5f3c8d7234ae47f58 (patch) | |
tree | a109bb1adeee89489113a4637ecd197dae403018 /src/map.cpp | |
parent | 1f4032b8de527da72ef4b89371c077eea644fdf2 (diff) | |
download | manaverse-8d80b897b5863372649de9b5f3c8d7234ae47f58.tar.gz manaverse-8d80b897b5863372649de9b5f3c8d7234ae47f58.tar.bz2 manaverse-8d80b897b5863372649de9b5f3c8d7234ae47f58.tar.xz manaverse-8d80b897b5863372649de9b5f3c8d7234ae47f58.zip |
Fix some memory leaks in being, debugwindow, shortcutwindow, skilldialog, map classes.
Diffstat (limited to 'src/map.cpp')
-rw-r--r-- | src/map.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/map.cpp b/src/map.cpp index 93e2acd1a..69963b354 100644 --- a/src/map.cpp +++ b/src/map.cpp @@ -1840,6 +1840,10 @@ ObjectsLayer::ObjectsLayer(unsigned width, unsigned height) : ObjectsLayer::~ObjectsLayer() { + const unsigned size = mWidth * mHeight; + for (unsigned f = 0; f < size; f ++) + delete mTiles[f]; + delete [] mTiles; mTiles = 0; } |