]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
Close log and handles last.
authorToni Wilen <twilen@winuae.net>
Fri, 26 Jun 2015 08:19:49 +0000 (11:19 +0300)
committerToni Wilen <twilen@winuae.net>
Fri, 26 Jun 2015 08:19:49 +0000 (11:19 +0300)
od-win32/win32.cpp

index 6460142723321d2eaecfd7455f6b803d1629a1a7..00ebb1b573961f9e54ca47ed76e312d49943451d 100644 (file)
@@ -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);