svn merge https://svn.blender.org/svnroot/bf-blender/trunk/blender -r22130:22205
[blender-staging.git] / source / blender / windowmanager / intern / wm_init_exit.c
index 4c9c3059e5b1019101549d61ebaa311126a37fe7..599844f10202e94abda1c340e65b9ad0ae0f2f75 100644 (file)
@@ -178,6 +178,7 @@ extern wchar_t *copybufinfo;
 
        // XXX copy/paste buffer stuff...
 extern void free_anim_copybuf(); 
+extern void free_posebuf(); 
 
 /* called in creator.c even... tsk, split this! */
 void WM_exit(bContext *C)
@@ -208,7 +209,6 @@ void WM_exit(bContext *C)
 //     BIF_GlobalReebFree();
 //     BIF_freeRetarget();
        BIF_freeTemplates(C);
-       BIF_freeSketch(C);
        
        free_ttfont(); /* bke_font.h */
        
@@ -228,9 +228,11 @@ 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();
+       free_posebuf();
 //     free_vertexpaint();
 //     free_imagepaint();
        
@@ -239,6 +241,7 @@ void WM_exit(bContext *C)
        BLF_exit();
 
        RE_FreeAllRender();
+       RE_engines_exit();
        
 //     free_txt_data();
        
@@ -271,8 +274,6 @@ void WM_exit(bContext *C)
 
        RNA_exit();
        
-       wm_free_reports(C);
-       
        CTX_free(C);
        
        if(MEM_get_memory_blocks_in_use()!=0) {