diff --git a/scene/3d/voxelizer.cpp b/scene/3d/voxelizer.cpp index 7c752545db3..fec4bc2b05c 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; }