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/blenkernel/BKE_cachefile.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/blenkernel/BKE_cachefile.h')
-rw-r--r-- | source/blender/blenkernel/BKE_cachefile.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/blenkernel/BKE_cachefile.h b/source/blender/blenkernel/BKE_cachefile.h index 51b161f1a06..7a9744ef9d6 100644 --- a/source/blender/blenkernel/BKE_cachefile.h +++ b/source/blender/blenkernel/BKE_cachefile.h @@ -38,6 +38,8 @@ struct CacheFile; struct Main; struct Scene; +void BKE_cachefiles_init(void); + void *BKE_cachefile_add(struct Main *bmain, const char *name); void BKE_cachefile_init(struct CacheFile *cache_file); |