diff options
-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(); } |