Fix memory leak in the BLI_bitmap created in 'looptri_no_hidden_map_get'

This commit is contained in:
Germano Cavalcante 2021-04-17 16:55:59 -03:00
parent 2d5a715f44
commit 4bce9c5283
1 changed files with 4 additions and 0 deletions

View File

@ -1555,6 +1555,10 @@ BVHTree *BKE_bvhtree_from_mesh_get(struct BVHTreeFromMesh *data,
bvh_cache_type,
bvh_cache_p,
mesh_eval_mutex);
if (looptri_mask != NULL) {
MEM_freeN(looptri_mask);
}
}
else {
/* Setup BVHTreeFromMesh */