aboutsummaryrefslogtreecommitdiff
path: root/simon
diff options
context:
space:
mode:
Diffstat (limited to 'simon')
-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();
}