Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Montagne <montagne29@wanadoo.fr>2019-04-30 18:05:34 +0300
committerBastien Montagne <montagne29@wanadoo.fr>2019-04-30 18:05:34 +0300
commita5df2a9b63ac0be47fc8d29fc9793c1614ca4dca (patch)
treed8bd3d4549ecefca134f3be44a4934341767e676 /source/blender/editors/space_nla/nla_select.c
parentb1f7647236f411b00bda4aad64e742f32462c6e9 (diff)
Fix (unreported) two memleaks in clic-select ops of Action and NLA editors.
Diffstat (limited to 'source/blender/editors/space_nla/nla_select.c')
-rw-r--r--source/blender/editors/space_nla/nla_select.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/editors/space_nla/nla_select.c b/source/blender/editors/space_nla/nla_select.c
index cb54129a820..1062a86f590 100644
--- a/source/blender/editors/space_nla/nla_select.c
+++ b/source/blender/editors/space_nla/nla_select.c
@@ -586,11 +586,11 @@ static void mouse_nla_strips(bContext *C, bAnimContext *ac, const int mval[2], s
/* remove active channel from list of channels for separate treatment
* (since it's needed later on) */
BLI_remlink(&anim_data, ale);
-
- /* 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);
+
/* if currently in tweakmode, exit tweakmode before changing selection states
* now that we've found our target...
*/