aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorStrangerke2015-11-24 19:10:11 +0100
committerStrangerke2015-11-24 19:10:11 +0100
commit4f330db26afadb8ec71908631d8b6fb79fcdca13 (patch)
tree2af08f0d51a39ea6ca26e6304358fa572fa948fa /engines
parentb0c032275af712e53f6079796b876a7a56319553 (diff)
downloadscummvm-rg350-4f330db26afadb8ec71908631d8b6fb79fcdca13.tar.gz
scummvm-rg350-4f330db26afadb8ec71908631d8b6fb79fcdca13.tar.bz2
scummvm-rg350-4f330db26afadb8ec71908631d8b6fb79fcdca13.zip
MADS: Fix memory leak in loadMadsV2Background
Diffstat (limited to 'engines')
-rw-r--r--engines/mads/scene_data.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/engines/mads/scene_data.cpp b/engines/mads/scene_data.cpp
index 2211430267..7b0e64c1fe 100644
--- a/engines/mads/scene_data.cpp
+++ b/engines/mads/scene_data.cpp
@@ -509,6 +509,8 @@ void SceneInfo::loadMadsV2Background(int sceneId, const Common::String &resName,
}
tileSet.clear();
tileDataFile.close();
+
+ delete[] tileMap;
}
/*------------------------------------------------------------------------*/