svn merge ^/trunk/blender -r43294:43338
[blender.git] / source / blender / windowmanager / intern / wm_init_exit.c
index e36d9c0b0ab70c8aadad094e92beb97888219c65..97fb2022150ed93f6e4ffa9a04ab4d9d1d6fae30 100644 (file)
@@ -65,6 +65,7 @@
 #include "BLI_listbase.h"
 #include "BLI_string.h"
 #include "BLI_utildefines.h"
+#include "BLI_cellalloc.h"
 
 #include "RE_engine.h"
 #include "RE_pipeline.h"               /* RE_ free stuff */
@@ -443,8 +444,10 @@ void WM_exit_ext(bContext *C, const short do_python)
        GHOST_DisposeSystemPaths();
 
        if(MEM_get_memory_blocks_in_use()!=0) {
-               printf("Error: Not freed memory blocks: %d\n", MEM_get_memory_blocks_in_use());
+               printf("Error: Not freed memory blocks: %d\n", MEM_get_memory_blocks_in_use()+BLI_cellalloc_get_totblock());
                MEM_printmemlist();
+               BLI_cellalloc_printleaks();
+               BLI_cellalloc_destroy();
        }
        wm_autosave_delete();