[Scummvm-git-logs] scummvm master -> 4e24ede18d0d171c5443d3afc31b2a0726d5837a

criezy criezy at scummvm.org
Mon Nov 26 23:48:17 CET 2018


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
4e24ede18d SDL: Fix crash when calling OSystem::quit() and OSystem::fatalError()


Commit: 4e24ede18d0d171c5443d3afc31b2a0726d5837a
    https://github.com/scummvm/scummvm/commit/4e24ede18d0d171c5443d3afc31b2a0726d5837a
Author: Thierry Crozat (criezy at scummvm.org)
Date: 2018-11-26T22:42:30Z

Commit Message:
SDL: Fix crash when calling OSystem::quit() and OSystem::fatalError()

Changed paths:
    backends/platform/sdl/sdl.cpp


diff --git a/backends/platform/sdl/sdl.cpp b/backends/platform/sdl/sdl.cpp
index 63f1e97..bf754d7 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);
 }
 





More information about the Scummvm-git-logs mailing list