Bugfix: memory was leaking when opening a new file (Ctl-N). Reports were not being...
authorKen Hughes <khughes@pacific.edu>
Sun, 18 Oct 2009 18:05:34 +0000 (18:05 +0000)
committerKen Hughes <khughes@pacific.edu>
Sun, 18 Oct 2009 18:05:34 +0000 (18:05 +0000)
Brecht (or someone), can you check this?

source/blender/windowmanager/intern/wm.c

index 5b7f892592b04a5b822ded2de0e94fa1f666dbff..f4baa42515ca9a1b15c474cace166abd96ae5005 100644 (file)
@@ -290,6 +290,7 @@ void wm_close_and_free(bContext *C, wmWindowManager *wm)
        BLI_freelistN(&wm->queue);
        
        BLI_freelistN(&wm->paintcursors);
+       BKE_reports_clear(&wm->reports);
        
        if(C && CTX_wm_manager(C)==wm) CTX_wm_manager_set(C, NULL);
 }