diff options
author | Campbell Barton <ideasman42@gmail.com> | 2021-08-20 09:35:35 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2021-08-20 09:37:50 +0300 |
commit | cea24b4b4a2c76b632e5841ef6e458e11d82baa0 (patch) | |
tree | 8f8c0e511a7fdf2dbd07762dad5f0fae277ca45b /source/blender/editors/gpencil | |
parent | e05db0c26bc407d146796a25acb8bf35506fb433 (diff) |
Cleanup: use "free_data" suffix when the argument isn't freed
Avoid API misuse that caused leaks in T90791 &
2788b0261cb7d33a2f6f2978ff4f55bb4987edae.
Diffstat (limited to 'source/blender/editors/gpencil')
-rw-r--r-- | source/blender/editors/gpencil/gpencil_undo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/gpencil/gpencil_undo.c b/source/blender/editors/gpencil/gpencil_undo.c index 96e85cc6135..99b8b672327 100644 --- a/source/blender/editors/gpencil/gpencil_undo.c +++ b/source/blender/editors/gpencil/gpencil_undo.c @@ -125,7 +125,7 @@ static void gpencil_undo_free_node(bGPundonode *undo_node) */ undo_node->gpd->adt = NULL; - BKE_gpencil_free(undo_node->gpd, false); + BKE_gpencil_free_data(undo_node->gpd, false); MEM_freeN(undo_node->gpd); } |