diff options
author | Thierry Crozat | 2018-11-26 22:41:50 +0000 |
---|---|---|
committer | Thierry Crozat | 2018-11-26 22:42:30 +0000 |
commit | 4e24ede18d0d171c5443d3afc31b2a0726d5837a (patch) | |
tree | 7ca3d025d860f9be03cf0e0f86c3697902769dd1 /backends/platform/sdl/sdl.cpp | |
parent | ae68b1332c2c6a189e70af749531ad7a8b477d1c (diff) | |
download | scummvm-rg350-4e24ede18d0d171c5443d3afc31b2a0726d5837a.tar.gz scummvm-rg350-4e24ede18d0d171c5443d3afc31b2a0726d5837a.tar.bz2 scummvm-rg350-4e24ede18d0d171c5443d3afc31b2a0726d5837a.zip |
SDL: Fix crash when calling OSystem::quit() and OSystem::fatalError()
Diffstat (limited to 'backends/platform/sdl/sdl.cpp')
-rw-r--r-- | backends/platform/sdl/sdl.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/backends/platform/sdl/sdl.cpp b/backends/platform/sdl/sdl.cpp index 63f1e97337..bf754d799b 100644 --- a/backends/platform/sdl/sdl.cpp +++ b/backends/platform/sdl/sdl.cpp @@ -381,12 +381,12 @@ void OSystem_SDL::setWindowCaption(const char *caption) { } void OSystem_SDL::quit() { - delete this; + destroy(); exit(0); } void OSystem_SDL::fatalError() { - delete this; + destroy(); exit(1); } |