Permalink
Browse files

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

  • Loading branch information...
criezy committed Nov 26, 2018
1 parent ae68b13 commit 4e24ede18d0d171c5443d3afc31b2a0726d5837a
Showing with 2 additions and 2 deletions.
  1. +2 −2 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);
}

0 comments on commit 4e24ede

Please sign in to comment.