diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2019-04-30 18:05:34 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2019-04-30 18:05:34 +0300 |
commit | a5df2a9b63ac0be47fc8d29fc9793c1614ca4dca (patch) | |
tree | d8bd3d4549ecefca134f3be44a4934341767e676 /source/blender/editors/space_action | |
parent | b1f7647236f411b00bda4aad64e742f32462c6e9 (diff) |
Fix (unreported) two memleaks in clic-select ops of Action and NLA editors.
Diffstat (limited to 'source/blender/editors/space_action')
-rw-r--r-- | source/blender/editors/space_action/action_select.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/editors/space_action/action_select.c b/source/blender/editors/space_action/action_select.c index bbbb9a09096..6082e942842 100644 --- a/source/blender/editors/space_action/action_select.c +++ b/source/blender/editors/space_action/action_select.c @@ -1553,11 +1553,11 @@ static void mouse_action_keys(bAnimContext *ac, /* cleanup temporary lists */ BLI_dlrbTree_free(&anim_keys); - - /* free list of channels, since it's not used anymore */ - ANIM_animdata_freelist(&anim_data); } + /* free list of channels, since it's not used anymore */ + ANIM_animdata_freelist(&anim_data); + /* For replacing selection, if we have somthing to select, we have to clear existing selection. * The same goes if we found nothing to select, and deselect_all is true * (deselect on nothing behavior). */ |