From 8d80b897b5863372649de9b5f3c8d7234ae47f58 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 25 May 2011 02:51:51 +0300 Subject: Fix some memory leaks in being, debugwindow, shortcutwindow, skilldialog, map classes. --- src/map.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/map.cpp') 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; } -- cgit v1.2.3-70-g09d2