diff options
author | Joshua Leung <aligorith@gmail.com> | 2009-11-16 15:44:33 +0300 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2009-11-16 15:44:33 +0300 |
commit | 88fe2d187bd8a1a6e07f60b6090d302ee81c462b (patch) | |
tree | c1c080c587831c65fbde038a21fc399901bd88cc /source/blender/editors/space_graph/graph_buttons.c | |
parent | a12c2a85610e28248effd019ae46518da22dac30 (diff) |
Bugfix: Remove drivers button was broken
Somehow this worked here, even though the pointer being referenced was supposed to have been freed already...
Diffstat (limited to 'source/blender/editors/space_graph/graph_buttons.c')
-rw-r--r-- | source/blender/editors/space_graph/graph_buttons.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/space_graph/graph_buttons.c b/source/blender/editors/space_graph/graph_buttons.c index f686d8f24b9..8aa236544d6 100644 --- a/source/blender/editors/space_graph/graph_buttons.c +++ b/source/blender/editors/space_graph/graph_buttons.c @@ -324,7 +324,7 @@ static void graph_panel_drivers(const bContext *C, Panel *pa) uiButSetFunc(but, driver_update_flags_cb, fcu, NULL); but= uiDefBut(block, BUT, B_IPO_DEPCHANGE, "Remove Driver", 0, 0, 10*UI_UNIT_X, 18, NULL, 0.0, 0.0, 0, 0, "Remove this driver"); - uiButSetFunc(but, driver_remove_cb, ale, NULL); + uiButSetNFunc(but, driver_remove_cb, MEM_dupallocN(ale), NULL); /* driver-level settings - type, expressions, and errors */ RNA_pointer_create(ale->id, &RNA_Driver, driver, &driver_ptr); |