summaryrefslogtreecommitdiff
path: root/src/map.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/map.cpp')
-rw-r--r--src/map.cpp4
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;
}