diff options
Diffstat (limited to 'backends/platform')
-rw-r--r-- | backends/platform/sdl/sdl.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/backends/platform/sdl/sdl.cpp b/backends/platform/sdl/sdl.cpp index d4f634e62f..c11c97c041 100644 --- a/backends/platform/sdl/sdl.cpp +++ b/backends/platform/sdl/sdl.cpp @@ -468,12 +468,14 @@ void OSystem_SDL::quit() { free(_cursorPalette); free(_mouseData); - delete _savefile; delete _timer; SDL_Quit(); + // Even Manager requires save manager for storing + // recorded events delete getEventManager(); + delete _savefile; exit(0); } |