Fix T49918: Make duplicates real crash on clicking operator toggles.
handle_mutex may be NULL here...
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user