From b69195dd1398bea4aca5fd5ea633991fd05bee9d Mon Sep 17 00:00:00 2001 From: Germano Cavalcante Date: Wed, 27 Oct 2021 19:01:12 -0300 Subject: Fix memory leak in cursor snap deactivation Missed in rB32cc9ff03746 --- source/blender/editors/space_view3d/view3d_cursor_snap.c | 1 + 1 file changed, 1 insertion(+) (limited to 'source/blender/editors') 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(); } -- cgit v1.2.3