taglist: fix memory leak with array area
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
04eff691c9
commit
1d1eee5f3c
|
@ -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);
|
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 */
|
/* First compute text and widget width */
|
||||||
for(int i = 0; i < tags->len; i++)
|
for(int i = 0; i < tags->len; i++)
|
||||||
|
|
Loading…
Reference in New Issue