Fix return of stack memory

The fix is suggested by Jacques.

Pull Request: https://projects.blender.org/blender/blender/pulls/107586
This commit is contained in:
Sergey Sharybin
2023-05-03 17:59:12 +02:00
committed by Sergey Sharybin
parent ac1ac6be9a
commit 42cdd39618

View File

@@ -397,7 +397,7 @@ class LazyFunctionForSimulationOutputNode final : public LazyFunction {
void *init_storage(LinearAllocator<> &allocator) const
{
return allocator.construct<EvalData>().get();
return allocator.construct<EvalData>().release();
}
void destruct_storage(void *storage) const