From e65f98576b4729f8008483b9353e63ff65c42b65 Mon Sep 17 00:00:00 2001 From: bitsawer Date: Mon, 9 Oct 2023 12:27:03 +0300 Subject: [PATCH] Fix VoxelGI bake memory leak (cherry picked from commit 416ef5ad1befae79f30c7f85a2a1ed85f4a96f66) --- scene/3d/voxelizer.cpp | 2 ++ 1 file changed, 2 insertions(+) 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; }