Fix VoxelGI bake memory leak

(cherry picked from commit 416ef5ad1b)
This commit is contained in:
bitsawer 2023-10-09 12:27:03 +03:00 committed by Yuri Sizov
parent 51fd44318f
commit e65f98576b
1 changed files with 2 additions and 0 deletions

View File

@ -884,6 +884,8 @@ Vector<uint8_t> Voxelizer::get_sdf_3d_image() const {
}
}
memdelete_arr(work_memory);
return image3d;
}