diff --git a/scene/3d/voxelizer.cpp b/scene/3d/voxelizer.cpp index 42b07486989..a84dc1e73e1 100644 --- a/scene/3d/voxelizer.cpp +++ b/scene/3d/voxelizer.cpp @@ -884,6 +884,8 @@ Vector Voxelizer::get_sdf_3d_image() const { } } + memdelete_arr(work_memory); + return image3d; }