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

handle_mutex may be NULL here...
This commit is contained in:
2016-11-04 08:11:40 +01:00
parent 4a68ff150f
commit 4e5d251ccb

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);
}