diff options
Diffstat (limited to 'backends/x11/x11.cpp')
-rw-r--r-- | backends/x11/x11.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/backends/x11/x11.cpp b/backends/x11/x11.cpp index 778028b031..1ceb20703b 100644 --- a/backends/x11/x11.cpp +++ b/backends/x11/x11.cpp @@ -63,7 +63,9 @@ int main(int argc, char *argv[]) { 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; } OSystem *OSystem_X11::create(int gfx_mode, bool full_screen) { |