Fix: Memory leak in realtime compositor

There was a memory leak in the GPU code generator for the compositor
output. It was just due to a missing free in the GPU code generator
destructor, so this patch makes sure it is freed.
This commit is contained in:
Omar Emara 2022-08-22 10:57:24 +02:00
parent 79dfd2eb7b
commit 9e23ab9f37
Notes: blender-bot 2023-02-14 11:21:40 +01:00
Referenced by issue #100555, Realtime Compositor memleak
1 changed files with 1 additions and 0 deletions

View File

@ -259,6 +259,7 @@ class GPUCodegen {
MEM_SAFE_FREE(output.volume);
MEM_SAFE_FREE(output.thickness);
MEM_SAFE_FREE(output.displacement);
MEM_SAFE_FREE(output.composite);
MEM_SAFE_FREE(output.material_functions);
delete create_info;
BLI_freelistN(&ubo_inputs_);