widget: stop deleting data, destructor does
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
a1a8f608b1
commit
eade93c4c8
|
@ -136,7 +136,6 @@ widget_delete(widget_t **widget)
|
||||||
if((*widget)->destructor)
|
if((*widget)->destructor)
|
||||||
(*widget)->destructor(*widget);
|
(*widget)->destructor(*widget);
|
||||||
button_list_wipe(&(*widget)->buttons);
|
button_list_wipe(&(*widget)->buttons);
|
||||||
p_delete(&(*widget)->data);
|
|
||||||
p_delete(&(*widget)->name);
|
p_delete(&(*widget)->name);
|
||||||
p_delete(widget);
|
p_delete(widget);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue