Fix leak creating 'empty' looptri bvh tree

This commit is contained in:
Campbell Barton 2015-10-09 11:03:23 +11:00
parent 103e38cbec
commit e9b9b883fb
Notes: blender-bot 2023-02-14 10:21:10 +01:00
Referenced by issue #46522, DataTransfer modifier: Impossible to set multiple transfer modes by script (if they're on different properties)
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);
}