svn merge -r 22571:22800 https://svn.blender.org/svnroot/bf-blender/trunk/blender
[blender.git] / source / blender / windowmanager / intern / wm_init_exit.c
index 46786b159c07206593f311cd269bf2ce464ebd2a..9664c6f28ffda4075a48fb2892c251f480d998b3 100644 (file)
@@ -269,6 +269,8 @@ void WM_exit(bContext *C)
 
        CTX_free(C);
        
+       SYS_DeleteSystem(SYS_GetSystem());
+
        if(MEM_get_memory_blocks_in_use()!=0) {
                printf("Error Totblock: %d\n", MEM_get_memory_blocks_in_use());
                MEM_printmemlist();
@@ -285,9 +287,6 @@ void WM_exit(bContext *C)
        }
 #endif 
        
-       
-       SYS_DeleteSystem(SYS_GetSystem());
-       
        exit(G.afbreek==1);
 }