Fix: memory leak

Previously, the `ZoneBuildInfo` values were never destructed. That worked, because
it rarely contained any allocations. This changed in b6f8e1396b.
This commit is contained in:
Jacques Lucke
2024-01-09 22:10:11 +01:00
parent f37b2d1907
commit 2be41131fa

View File

@@ -2132,8 +2132,7 @@ struct GeometryNodesLazyFunctionBuilder {
*/
void build_zone_functions()
{
zone_build_infos_ = scope_.linear_allocator().construct_array<ZoneBuildInfo>(
tree_zones_->zones.size());
zone_build_infos_ = scope_.construct<Array<ZoneBuildInfo>>(tree_zones_->zones.size());
const Array<int> zone_build_order = this->compute_zone_build_order();