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
diff options
context:
space:
mode:
authorJeroen Bakker <j.bakker@atmind.nl>2012-08-13 14:56:36 +0400
committerJeroen Bakker <j.bakker@atmind.nl>2012-08-13 14:56:36 +0400
commite28fcec04201fb3be19960a0b91fcb20f8d6c56d (patch)
treedffeb25323ad214ac86f6b4cb0d126d729643eba /source/blender/windowmanager/intern/wm_init_exit.c
parent64e0202314531f2435d518f522b8f06e956c2f3d (diff)
Fix for [#32220] regression - DistortionCache is never freed.
* at max 10 cache items will be available. Items will be removed by latest usage. * number of cached items can be adjusted in code * added deinitialization of compositor when blender exists. * updated scons and cmake build files
Diffstat (limited to 'source/blender/windowmanager/intern/wm_init_exit.c')
-rw-r--r--source/blender/windowmanager/intern/wm_init_exit.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/source/blender/windowmanager/intern/wm_init_exit.c b/source/blender/windowmanager/intern/wm_init_exit.c
index ac9b44fddb0..9047532c92c 100644
--- a/source/blender/windowmanager/intern/wm_init_exit.c
+++ b/source/blender/windowmanager/intern/wm_init_exit.c
@@ -113,6 +113,7 @@
#include "BKE_depsgraph.h"
#include "BKE_sound.h"
+#include "COM_compositor.h"
static void wm_init_reports(bContext *C)
{
@@ -211,7 +212,6 @@ void WM_init(bContext *C, int argc, const char **argv)
#ifdef WITH_COMPOSITOR
if (1) {
extern void *COM_linker_hack;
- extern void *COM_execute;
COM_linker_hack = COM_execute;
}
#endif
@@ -414,6 +414,10 @@ void WM_exit_ext(bContext *C, const short do_python)
BKE_sequencer_free_clipboard(); /* sequencer.c */
BKE_tracking_clipboard_free();
+#ifdef WITH_COMPOSITOR
+ COM_deinitialize();
+#endif
+
free_blender(); /* blender.c, does entire library and spacetypes */
// free_matcopybuf();
free_anim_copybuf();