From 9cafe19c707971f916060f94c40660e6b65a30e3 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Tue, 4 Jan 2011 08:56:25 +0000 Subject: - use BKE_keyingset_free_path where paths were being freed inline. - rna_path was being freed when null, printing errors. --- source/blender/editors/animation/keyingsets.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'source/blender/editors/animation') diff --git a/source/blender/editors/animation/keyingsets.c b/source/blender/editors/animation/keyingsets.c index 09128672df8..433abc7d3d1 100644 --- a/source/blender/editors/animation/keyingsets.c +++ b/source/blender/editors/animation/keyingsets.c @@ -418,12 +418,9 @@ static int remove_keyingset_button_exec (bContext *C, wmOperator *op) /* try to find a path matching this description */ ksp= BKE_keyingset_find_path(ks, ptr.id.data, ks->name, path, index, KSP_GROUP_KSNAME); - + if (ksp) { - /* just free it... */ - MEM_freeN(ksp->rna_path); - BLI_freelinkN(&ks->paths, ksp); - + BKE_keyingset_free_path(ks, ksp); success= 1; } -- cgit v1.2.3