From 844909b294a61292b6c4677cb60849a9cb5596d9 Mon Sep 17 00:00:00 2001 From: Joshua Leung Date: Fri, 5 Dec 2014 14:15:46 +1300 Subject: Fix for typo + memory leak --- source/blender/editors/space_nla/nla_edit.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source/blender/editors/space_nla/nla_edit.c') diff --git a/source/blender/editors/space_nla/nla_edit.c b/source/blender/editors/space_nla/nla_edit.c index 35c540b27b3..a883f350f1c 100644 --- a/source/blender/editors/space_nla/nla_edit.c +++ b/source/blender/editors/space_nla/nla_edit.c @@ -2331,6 +2331,9 @@ static int nla_fmodifier_copy_exec(bContext *C, wmOperator *op) } } + /* free temp data */ + ANIM_animdata_freelist(&anim_data); + /* successful or not? */ if (ok == 0) { BKE_report(op->reports, RPT_ERROR, "No F-Modifiers available to be copied"); -- cgit v1.2.3