From 3286c62ee54c68818f428d98dbe4e3a019d0e44d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Sat, 11 Mar 2017 12:54:13 +0100 Subject: [PATCH] Fix shutdown crash in SDL builds. Fixes #9409 --- ext/native/base/PCMain.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/native/base/PCMain.cpp b/ext/native/base/PCMain.cpp index d17134d27c..2bb1598653 100644 --- a/ext/native/base/PCMain.cpp +++ b/ext/native/base/PCMain.cpp @@ -914,8 +914,8 @@ int main(int argc, char *argv[]) { #endif NativeShutdownGraphics(); graphicsContext->Shutdown(); - delete graphicsContext; NativeShutdown(); + delete graphicsContext; // Faster exit, thanks to the OS. Remove this if you want to debug shutdown // The speed difference is only really noticable on Linux. On Windows you do notice it though #ifndef MOBILE_DEVICE