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:
authorCampbell Barton <ideasman42@gmail.com>2015-03-05 01:10:16 +0300
committerCampbell Barton <ideasman42@gmail.com>2015-03-05 01:10:16 +0300
commit90e1b83696b7a134d47a27f47e11762b8f57d65e (patch)
treec9b00925b71e939b6c71b544d097ebbca3146e87 /source/blender/editors/animation/drivers.c
parentffee7f1a58a18bc08add94176ddffe29809139a6 (diff)
Fix T43890: Crash, Alt-D over operator redo button
Diffstat (limited to 'source/blender/editors/animation/drivers.c')
-rw-r--r--source/blender/editors/animation/drivers.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/source/blender/editors/animation/drivers.c b/source/blender/editors/animation/drivers.c
index 5799101a7db..67ba82f1858 100644
--- a/source/blender/editors/animation/drivers.c
+++ b/source/blender/editors/animation/drivers.c
@@ -494,8 +494,11 @@ static int remove_driver_button_exec(bContext *C, wmOperator *op)
if (ptr.id.data && ptr.data && prop) {
char *path = BKE_animdata_driver_path_hack(C, &ptr, prop, NULL);
- success = ANIM_remove_driver(op->reports, ptr.id.data, path, index, 0);
- MEM_freeN(path);
+ if (path) {
+ success = ANIM_remove_driver(op->reports, ptr.id.data, path, index, 0);
+
+ MEM_freeN(path);
+ }
}
if (success) {