Fix memory leak in the BLI_bitmap created in 'looptri_no_hidden_map_get'
This commit is contained in:
parent
2d5a715f44
commit
4bce9c5283
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue