Bugfix: Remove drivers button was broken

Somehow this worked here, even though the pointer being referenced was supposed to have been freed already...
This commit is contained in:
Joshua Leung 2009-11-16 12:44:33 +00:00
parent a12c2a8561
commit 88fe2d187b

@ -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);