From: Toni Wilen Date: Fri, 26 Jun 2015 08:19:49 +0000 (+0300) Subject: Close log and handles last. X-Git-Tag: 3200~168 X-Git-Url: https://git.unchartedbackwaters.co.uk/w/?a=commitdiff_plain;h=c4621ad8b5e1d725ce8cdc4bc2e8e4373b3d5b2a;p=francis%2Fwinuae.git Close log and handles last. --- diff --git a/od-win32/win32.cpp b/od-win32/win32.cpp index 64601427..00ebb1b5 100644 --- a/od-win32/win32.cpp +++ b/od-win32/win32.cpp @@ -5924,8 +5924,6 @@ end: closeprinter (); #endif create_afnewdir (1); - close_console (); - _fcloseall (); #ifdef RETROPLATFORM rp_free (); #endif @@ -5938,6 +5936,8 @@ end: // show memory leaks //_CrtSetDbgFlag ( _CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF ); #endif + close_console(); + _fcloseall(); for (i = 0; i < argc; i++) xfree (argv[i]); xfree (argv);