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/space_outliner/outliner.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'source/blender/editors/space_outliner/outliner.c') diff --git a/source/blender/editors/space_outliner/outliner.c b/source/blender/editors/space_outliner/outliner.c index b611322d7e9..799a4200ecf 100644 --- a/source/blender/editors/space_outliner/outliner.c +++ b/source/blender/editors/space_outliner/outliner.c @@ -4144,12 +4144,9 @@ static void do_outliner_keyingset_editop(SpaceOops *soops, KeyingSet *ks, ListBa if (ksp) { /* free path's data */ - // TODO: we probably need an API method for this - if (ksp->rna_path) MEM_freeN(ksp->rna_path); + BKE_keyingset_free_path(ks, ksp); + ks->active_path= 0; - - /* remove path from set */ - BLI_freelinkN(&ks->paths, ksp); } } break; -- cgit v1.2.3