Skip to content

Commit

Permalink
SDL: Fix crash when calling OSystem::quit() and OSystem::fatalError()
Browse files Browse the repository at this point in the history
  • Loading branch information
criezy committed Nov 26, 2018
1 parent ae68b13 commit 4e24ede
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backends/platform/sdl/sdl.cpp
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -381,12 +381,12 @@ void OSystem_SDL::setWindowCaption(const char *caption) {
} }


void OSystem_SDL::quit() { void OSystem_SDL::quit() {
delete this; destroy();
exit(0); exit(0);
} }


void OSystem_SDL::fatalError() { void OSystem_SDL::fatalError() {
delete this; destroy();
exit(1); exit(1);
} }


Expand Down

0 comments on commit 4e24ede

Please sign in to comment.