Fix: Memory leak in grease_pencil.layer_reorder

This commit is contained in:
Falk David
2023-06-26 17:12:23 +02:00
parent 3d4cdd6b88
commit 34d65eff1b

View File

@@ -146,6 +146,8 @@ static int grease_pencil_layer_reorder_exec(bContext *C, wmOperator *op)
BLI_assert_unreachable();
}
MEM_SAFE_FREE(target_layer_name);
DEG_id_tag_update(&grease_pencil.id, ID_RECALC_GEOMETRY);
WM_event_add_notifier(C, NC_GEOM | ND_DATA, &grease_pencil);