taglist: fix memory leak with array area

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2008-08-30 10:40:43 +02:00
parent 04eff691c9
commit 1d1eee5f3c
1 changed files with 2 additions and 1 deletions

View File

@ -108,7 +108,8 @@ taglist_draw(draw_context_t *ctx, int screen, widget_node_t *w,
taglist_drawn_area_list_push(&data->drawn_area, tda);
}
tda->areas.len = 0;
area_array_wipe(&tda->areas);
area_array_init(&tda->areas);
/* First compute text and widget width */
for(int i = 0; i < tags->len; i++)