Fix leak creating 'empty' looptri bvh tree

This commit is contained in:
Campbell Barton 2015-10-09 11:03:23 +11:00 committed by Sergey Sharybin
parent a67433bc19
commit f39babc9d6
1 changed files with 3 additions and 0 deletions

View File

@ -980,6 +980,9 @@ static void bvhtree_from_mesh_looptri_setup_data(
if (vert_allocated) {
MEM_freeN((void *)vert);
}
if (loop_allocated) {
MEM_freeN((void *)mloop);
}
if (looptri_allocated) {
MEM_freeN((void *)looptri);
}