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/linuxmoto/linuxmoto-main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'backends/platform/linuxmoto') diff --git a/backends/platform/linuxmoto/linuxmoto-main.cpp b/backends/platform/linuxmoto/linuxmoto-main.cpp index 507be9fa95..2f14e3d53c 100644 --- a/backends/platform/linuxmoto/linuxmoto-main.cpp +++ b/backends/platform/linuxmoto/linuxmoto-main.cpp @@ -36,7 +36,7 @@ int main(int argc, char *argv[]) { int res = scummvm_main(argc, argv); // Free OSystem - delete (OSystem_LINUXMOTO *)g_system; + g_system->destroy(); return res; } -- cgit v1.2.3