Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorKen Hughes <khughes@pacific.edu>2009-10-18 22:05:34 +0400
committerKen Hughes <khughes@pacific.edu>2009-10-18 22:05:34 +0400
commit1f0f2cc6292f21fcd62c9c6782f74cd2077b28fe (patch)
tree374b568af08507ec448b2c379d8fbcd1431d53b3 /source
parenta0c567d1b1d4ce7a9df5bf7f7899641d6ce36f3d (diff)
Bugfix: memory was leaking when opening a new file (Ctl-N). Reports were not being freed.
Brecht (or someone), can you check this?
Diffstat (limited to 'source')
-rw-r--r--source/blender/windowmanager/intern/wm.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/windowmanager/intern/wm.c b/source/blender/windowmanager/intern/wm.c
index 5b7f892592b..f4baa42515c 100644
--- a/source/blender/windowmanager/intern/wm.c
+++ b/source/blender/windowmanager/intern/wm.c
@@ -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);
}