[Bf-blender-cvs] [844909b] master: Fix for typo + memory leak
Joshua Leung
noreply at git.blender.org
Fri Dec 5 02:16:01 CET 2014
Commit: 844909b294a61292b6c4677cb60849a9cb5596d9
Author: Joshua Leung
Date: Fri Dec 5 14:15:46 2014 +1300
Branches: master
https://developer.blender.org/rB844909b294a61292b6c4677cb60849a9cb5596d9
Fix for typo + memory leak
===================================================================
M source/blender/editors/animation/anim_deps.c
M source/blender/editors/space_nla/nla_edit.c
===================================================================
diff --git a/source/blender/editors/animation/anim_deps.c b/source/blender/editors/animation/anim_deps.c
index f3b47b1..eb57907 100644
--- a/source/blender/editors/animation/anim_deps.c
+++ b/source/blender/editors/animation/anim_deps.c
@@ -92,7 +92,7 @@ void ANIM_list_elem_update(Scene *scene, bAnimListElem *ale)
RNA_property_update_main(G.main, scene, &ptr, prop);
}
else {
- /* in other case we do standard depsgaph update, ideally
+ /* in other case we do standard depsgraph update, ideally
* we'd be calling property update functions here too ... */
DAG_id_tag_update(id, OB_RECALC_OB | OB_RECALC_DATA | OB_RECALC_TIME); // XXX or do we want something more restrictive?
}
diff --git a/source/blender/editors/space_nla/nla_edit.c b/source/blender/editors/space_nla/nla_edit.c
index 35c540b..a883f35 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");
More information about the Bf-blender-cvs
mailing list