diff options
Diffstat (limited to 'backends/sdl')
-rw-r--r-- | backends/sdl/sdl.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/backends/sdl/sdl.cpp b/backends/sdl/sdl.cpp index 2d567ea769..ed3371d4fb 100644 --- a/backends/sdl/sdl.cpp +++ b/backends/sdl/sdl.cpp @@ -91,12 +91,14 @@ int main(int argc, char *argv[]) { #endif // defined(__SYMBIAN32__) - + // Create our OSystem instance g_system = new OSystem_SDL(); assert(g_system); // Invoke the actual ScummVM main entry point: - return scummvm_main(argc, argv); + int res = scummvm_main(argc, argv); + g_system->quit(); // TODO: Consider removing / replacing this! + return res; } #endif |