aboutsummaryrefslogtreecommitdiff
path: root/simon
diff options
context:
space:
mode:
authorTravis Howell2004-10-18 14:50:09 +0000
committerTravis Howell2004-10-18 14:50:09 +0000
commit95eb4e11318dd8c86fd1dd3d90670716d07d6898 (patch)
treee8013f197fdaa8e33579d27ec3560921bb35fcff /simon
parent9531348692f8eb0ad82018fe046db643326a1fa2 (diff)
downloadscummvm-rg350-95eb4e11318dd8c86fd1dd3d90670716d07d6898.tar.gz
scummvm-rg350-95eb4e11318dd8c86fd1dd3d90670716d07d6898.tar.bz2
scummvm-rg350-95eb4e11318dd8c86fd1dd3d90670716d07d6898.zip
Free some memory on exit
svn-id: r15606
Diffstat (limited to 'simon')
-rw-r--r--simon/simon.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/simon/simon.cpp b/simon/simon.cpp
index 45334eba0a..488e838f95 100644
--- a/simon/simon.cpp
+++ b/simon/simon.cpp
@@ -4738,6 +4738,12 @@ void SimonEngine::shutdown() {
delete _game_file;
_game_file = NULL;
}
+
+ free(_itemarray_ptr);
+ free(_stringtab_ptr);
+ free(_itemheap_ptr);
+ free(_tablesheap_ptr);
+
midi.close();
_system->quit();
}