aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/wince/wince-sdl.cpp
diff options
context:
space:
mode:
authorThierry Crozat2018-07-07 01:05:54 +0100
committerThierry Crozat2018-10-14 21:25:33 +0100
commit941d22c047e1afb6b882114d2c7d3a1660cda5c0 (patch)
tree6299846cc73c3b3309029de47f6e372ecf10715a /backends/platform/wince/wince-sdl.cpp
parent1e11da712ba8359cb65b0a171c7ce83de6a17879 (diff)
downloadscummvm-rg350-941d22c047e1afb6b882114d2c7d3a1660cda5c0.tar.gz
scummvm-rg350-941d22c047e1afb6b882114d2c7d3a1660cda5c0.tar.bz2
scummvm-rg350-941d22c047e1afb6b882114d2c7d3a1660cda5c0.zip
BACKENDS: Use OSystem::destroy() instead of deleting directly the g_system instance
Diffstat (limited to 'backends/platform/wince/wince-sdl.cpp')
-rw-r--r--backends/platform/wince/wince-sdl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/backends/platform/wince/wince-sdl.cpp b/backends/platform/wince/wince-sdl.cpp
index f03068f6e3..8a19eac064 100644
--- a/backends/platform/wince/wince-sdl.cpp
+++ b/backends/platform/wince/wince-sdl.cpp
@@ -237,7 +237,7 @@ int SDL_main(int argc, char **argv) {
res = scummvm_main(argc, argv);
// Free OSystem
- delete(OSystem_WINCE3 *)g_system;
+ g_system->destroy();
#if !defined(DEBUG) && !defined(__GNUC__)
}
__except(handleException(GetExceptionInformation())) {