From 941d22c047e1afb6b882114d2c7d3a1660cda5c0 Mon Sep 17 00:00:00 2001 From: Thierry Crozat Date: Sat, 7 Jul 2018 01:05:54 +0100 Subject: BACKENDS: Use OSystem::destroy() instead of deleting directly the g_system instance --- backends/platform/3ds/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'backends/platform/3ds') diff --git a/backends/platform/3ds/main.cpp b/backends/platform/3ds/main.cpp index e9046d7c28..20983141c1 100644 --- a/backends/platform/3ds/main.cpp +++ b/backends/platform/3ds/main.cpp @@ -40,7 +40,7 @@ int main(int argc, char *argv[]) { // res = scummvm_main(argc, argv); scummvm_main(0, nullptr); - delete dynamic_cast<_3DS::OSystem_3DS*>(g_system); + g_system->destroy(); // Turn on both screen backlights before exiting. if (R_SUCCEEDED(gspLcdInit())) { -- cgit v1.2.3