From 259896a4a1bfa9e5f3396c066fff33105b8e3c1b Mon Sep 17 00:00:00 2001 From: Chris Apers Date: Tue, 9 Nov 2004 10:34:40 +0000 Subject: Fixed crash svn-id: r15740 --- simon/simon.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'simon') 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(); } -- cgit v1.2.3