Bugfix: memory was leaking when opening a new file (Ctl-N). Reports were not being freed.

Brecht (or someone), can you check this?
This commit is contained in:
Ken Hughes
2009-10-18 18:05:34 +00:00
parent a0c567d1b1
commit 1f0f2cc629

View 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);
}