textbox: unref image on destruction
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
9b61434f7e
commit
045d4c823b
|
@ -132,6 +132,7 @@ static void
|
||||||
textbox_destructor(widget_t *w)
|
textbox_destructor(widget_t *w)
|
||||||
{
|
{
|
||||||
textbox_data_t *d = w->data;
|
textbox_data_t *d = w->data;
|
||||||
|
image_unref(globalconf.L, d->bg_image);
|
||||||
draw_text_context_wipe(&d->data);
|
draw_text_context_wipe(&d->data);
|
||||||
p_delete(&d);
|
p_delete(&d);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue