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:
authorKévin Dietrich <kevin.dietrich@mailoo.org>2016-08-26 15:25:03 +0300
committerKévin Dietrich <kevin.dietrich@mailoo.org>2016-08-26 15:28:50 +0300
commit62b1cdd66e39db58e422e15b20a80d5e05f3dd4f (patch)
treec80b6eefbc2d638d2b049acbe3e60cbbf3c3f67a /source/creator
parent8870c454a1aa9cd8a0547d533fc0d7fc2a048ca0 (diff)
Fix over creation of cache files handles (leading to memory leaks).
Multiple threads could create multiple handles for the same cache file, so protect handle creation with a mutex, to make sure only one is created.
Diffstat (limited to 'source/creator')
-rw-r--r--source/creator/creator.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/creator/creator.c b/source/creator/creator.c
index bfb1dd94dd4..a59a45f885c 100644
--- a/source/creator/creator.c
+++ b/source/creator/creator.c
@@ -54,6 +54,7 @@
#include "BKE_appdir.h"
#include "BKE_blender.h"
#include "BKE_brush.h"
+#include "BKE_cachefile.h"
#include "BKE_context.h"
#include "BKE_depsgraph.h" /* for DAG_init */
#include "BKE_font.h"
@@ -357,6 +358,7 @@ int main(
BKE_blender_globals_init(); /* blender.c */
IMB_init();
+ BKE_cachefiles_init();
BKE_images_init();
BKE_modifier_init();
DAG_init();