Fix: GPv3: Memory leaks from Grease Pencil undo steps #119125

Merged
Lukas Tönne merged 1 commits from LukasTonne/blender:fix-gp3-undo-memleaks into main 2024-03-06 15:42:34 +01:00
1 changed files with 5 additions and 0 deletions

View File

@ -290,6 +290,11 @@ class StepObject {
}
public:
~StepObject()
{
CustomData_free(&layers_data_, layers_num_);
}
void encode(Object *ob, StepEncodeStatus &encode_status)
{
const GreasePencil &grease_pencil = *static_cast<GreasePencil *>(ob->data);