textbox: unref image on destruction

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2009-04-13 12:43:00 +02:00
parent 9b61434f7e
commit 045d4c823b
1 changed files with 1 additions and 0 deletions

View File

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