From 2be41131fa968312e17e5fc3bfa3a3f2d88aecfe Mon Sep 17 00:00:00 2001 From: Jacques Lucke Date: Tue, 9 Jan 2024 22:10:11 +0100 Subject: [PATCH] Fix: memory leak Previously, the `ZoneBuildInfo` values were never destructed. That worked, because it rarely contained any allocations. This changed in b6f8e1396b72929f6ff603d00e3. --- source/blender/nodes/intern/geometry_nodes_lazy_function.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/source/blender/nodes/intern/geometry_nodes_lazy_function.cc b/source/blender/nodes/intern/geometry_nodes_lazy_function.cc index bdbafd54a3a..9deb3f9af9d 100644 --- a/source/blender/nodes/intern/geometry_nodes_lazy_function.cc +++ b/source/blender/nodes/intern/geometry_nodes_lazy_function.cc @@ -2132,8 +2132,7 @@ struct GeometryNodesLazyFunctionBuilder { */ void build_zone_functions() { - zone_build_infos_ = scope_.linear_allocator().construct_array( - tree_zones_->zones.size()); + zone_build_infos_ = scope_.construct>(tree_zones_->zones.size()); const Array zone_build_order = this->compute_zone_build_order();