fix memory leak

This commit is contained in:
Joseph Eagar 2021-05-14 21:21:01 -07:00
parent 89d56ea225
commit 17fafe2f63
1 changed files with 5 additions and 0 deletions

View File

@ -496,6 +496,11 @@ static void pbvh_bmesh_node_split(
MEM_freeN(n->layer_disp);
}
if (n->tribuf) {
BKE_pbvh_bmesh_free_tris(pbvh, n);
n->tribuf = NULL;
}
n->bm_faces = NULL;
n->bm_unique_verts = NULL;
n->bm_other_verts = NULL;