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/blender/makesdna
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/blender/makesdna')
-rw-r--r--source/blender/makesdna/DNA_cachefile_types.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/makesdna/DNA_cachefile_types.h b/source/blender/makesdna/DNA_cachefile_types.h
index 1cda0233aa8..dd47d63fc19 100644
--- a/source/blender/makesdna/DNA_cachefile_types.h
+++ b/source/blender/makesdna/DNA_cachefile_types.h
@@ -58,6 +58,7 @@ typedef struct CacheFile {
struct AnimData *adt;
struct AbcArchiveHandle *handle;
+ void *handle_mutex;
/* Paths of the objects inside of the Alembic archive referenced by this
* CacheFile. */