aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Apers2004-11-09 10:34:40 +0000
committerChris Apers2004-11-09 10:34:40 +0000
commit259896a4a1bfa9e5f3396c066fff33105b8e3c1b (patch)
treedd8a8f559ffdbcd1f0e239e02050d90b77fe022a
parent2abe17e5946ba25a0a2cbb106ebe310f4d9f57d4 (diff)
downloadscummvm-rg350-259896a4a1bfa9e5f3396c066fff33105b8e3c1b.tar.gz
scummvm-rg350-259896a4a1bfa9e5f3396c066fff33105b8e3c1b.tar.bz2
scummvm-rg350-259896a4a1bfa9e5f3396c066fff33105b8e3c1b.zip
Fixed crash
svn-id: r15740
-rw-r--r--simon/simon.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/simon/simon.cpp b/simon/simon.cpp
index 6701b1dea6..cecd28c962 100644
--- a/simon/simon.cpp
+++ b/simon/simon.cpp
@@ -4745,11 +4745,14 @@ void SimonEngine::shutdown() {
_game_file = NULL;
}
- free(_itemarray_ptr);
free(_stringtab_ptr);
+ free(_itemarray_ptr);
+#ifndef __PALM_OS__
+ // FIXME : These pointers may vary during the game.
+ // for these two calls i have an invalid chunk pointer error
free(_itemheap_ptr);
free(_tablesheap_ptr);
-
+#endif
midi.close();
_system->quit();
}