aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/dingux
diff options
context:
space:
mode:
Diffstat (limited to 'backends/platform/dingux')
-rw-r--r--backends/platform/dingux/main.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/backends/platform/dingux/main.cpp b/backends/platform/dingux/main.cpp
index 91899a55cf..c5dccc5f50 100644
--- a/backends/platform/dingux/main.cpp
+++ b/backends/platform/dingux/main.cpp
@@ -46,7 +46,9 @@ int main(int argc, char* argv[]) {
// Invoke the actual ScummVM main entry point:
int res = scummvm_main(argc, argv);
- ((OSystem_SDL_Dingux *)g_system)->deinit();
+
+ // Free OSystem
+ delete (OSystem_SDL_Dingux *)g_system;
return res;
}