From c4621ad8b5e1d725ce8cdc4bc2e8e4373b3d5b2a Mon Sep 17 00:00:00 2001 From: Toni Wilen Date: Fri, 26 Jun 2015 11:19:49 +0300 Subject: [PATCH] Close log and handles last. --- od-win32/win32.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); -- 2.47.3