Fix over creation of cache files handles (leading to memory leaks).
authorKévin Dietrich <kevin.dietrich@mailoo.org>
Fri, 26 Aug 2016 12:25:03 +0000 (14:25 +0200)
committerKévin Dietrich <kevin.dietrich@mailoo.org>
Fri, 26 Aug 2016 12:28:50 +0000 (14:28 +0200)
commit62b1cdd66e39db58e422e15b20a80d5e05f3dd4f
treec80b6eefbc2d638d2b049acbe3e60cbbf3c3f67a
parent8870c454a1aa9cd8a0547d533fc0d7fc2a048ca0
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.
source/blender/blenkernel/BKE_cachefile.h
source/blender/blenkernel/intern/cachefile.c
source/blender/blenloader/intern/readfile.c
source/blender/makesdna/DNA_cachefile_types.h
source/creator/creator.c