diff options
author | Kévin Dietrich <kevin.dietrich@mailoo.org> | 2016-08-26 15:25:03 +0300 |
---|---|---|
committer | Kévin Dietrich <kevin.dietrich@mailoo.org> | 2016-08-26 15:28:50 +0300 |
commit | 62b1cdd66e39db58e422e15b20a80d5e05f3dd4f (patch) | |
tree | c80b6eefbc2d638d2b049acbe3e60cbbf3c3f67a /source/blender/makesdna/DNA_cachefile_types.h | |
parent | 8870c454a1aa9cd8a0547d533fc0d7fc2a048ca0 (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/DNA_cachefile_types.h')
-rw-r--r-- | source/blender/makesdna/DNA_cachefile_types.h | 1 |
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. */ |