Fix T49918: Make duplicates real crash on clicking operator toggles.

handle_mutex may be NULL here...
This commit is contained in:
Bastien Montagne 2016-11-04 08:11:40 +01:00
parent 4a68ff150f
commit 4e5d251ccb
Notes: blender-bot 2023-02-14 07:26:58 +01:00
Referenced by issue #49918, Make duplicates real crash on clicking operator toggles
1 changed files with 3 additions and 1 deletions

View File

@ -93,7 +93,9 @@ void BKE_cachefile_free(CacheFile *cache_file)
ABC_free_handle(cache_file->handle);
#endif
BLI_mutex_free(cache_file->handle_mutex);
if (cache_file->handle_mutex) {
BLI_mutex_free(cache_file->handle_mutex);
}
BLI_freelistN(&cache_file->object_paths);
}