- fix for BGE warnings
[blender.git] / source / blender / windowmanager / intern / wm_init_exit.c
index ee826d5f57eed78f618f1ca044b77e4af6b67c48..9a268f8be17ae785a85199f9f767b03d7b5bfe2f 100644 (file)
@@ -266,6 +266,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();
@@ -282,9 +284,6 @@ void WM_exit(bContext *C)
        }
 #endif 
        
-       
-       SYS_DeleteSystem(SYS_GetSystem());
-       
        exit(G.afbreek==1);
 }