aboutsummaryrefslogtreecommitdiff
path: root/backends/platform
diff options
context:
space:
mode:
Diffstat (limited to 'backends/platform')
-rw-r--r--backends/platform/sdl/sdl.cpp4
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);
}