diff options
author | Germano Cavalcante <germano.costa@ig.com.br> | 2021-10-28 01:01:12 +0300 |
---|---|---|
committer | Germano Cavalcante <germano.costa@ig.com.br> | 2021-10-28 01:06:47 +0300 |
commit | b69195dd1398bea4aca5fd5ea633991fd05bee9d (patch) | |
tree | 8b967f6504d60a008069ed45b34c29363bc907d9 /source/blender/editors/space_view3d/view3d_cursor_snap.c | |
parent | b02c8a40ffbc835ff12f9e7adf6a2f935caa2f6e (diff) |
Fix memory leak in cursor snap deactivation
Missed in rB32cc9ff03746
Diffstat (limited to 'source/blender/editors/space_view3d/view3d_cursor_snap.c')
-rw-r--r-- | source/blender/editors/space_view3d/view3d_cursor_snap.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/editors/space_view3d/view3d_cursor_snap.c b/source/blender/editors/space_view3d/view3d_cursor_snap.c index 937ac98acb8..75d2ff8b1ce 100644 --- a/source/blender/editors/space_view3d/view3d_cursor_snap.c +++ b/source/blender/editors/space_view3d/view3d_cursor_snap.c @@ -923,6 +923,7 @@ void ED_view3d_cursor_snap_deactive(V3DSnapCursorState *state) SnapStateIntern *state_intern = STATE_INTERN_GET(state); BLI_remlink(&data_intern->state_intern, state_intern); + MEM_freeN(state_intern); if (BLI_listbase_is_empty(&data_intern->state_intern)) { v3d_cursor_snap_free(); } |