- was freeing reports on freed listbases
[blender-staging.git] / source / blender / windowmanager / intern / wm_init_exit.c
index 94218c10c9a2cf10ab180a463345605830b06113..5c34b19c1f41d79f1f570ce8a31e87d440bb57cc 100644 (file)
@@ -227,6 +227,7 @@ void WM_exit(bContext *C)
        
        fastshade_free_render();        /* shaded view */
        ED_preview_free_dbase();        /* frees a Main dbase, before free_blender! */
+       wm_free_reports(C);                     /* before free_blender! - since the ListBases get freed there */
        free_blender();                         /* blender.c, does entire library and spacetypes */
 //     free_matcopybuf();
        free_anim_copybuf();
@@ -270,8 +271,6 @@ void WM_exit(bContext *C)
 
        RNA_exit();
        
-       wm_free_reports(C);
-       
        CTX_free(C);
        
        if(MEM_get_memory_blocks_in_use()!=0) {