Stupid memory leak fixed.

Signed-off-by: Pierre Habouzit <madcoder@debian.org>
This commit is contained in:
Pierre Habouzit 2008-06-22 20:59:36 +02:00 committed by Julien Danjou
parent 93289a1c1d
commit 25fc879582
1 changed files with 5 additions and 1 deletions

View File

@ -67,7 +67,8 @@ static char *
tag_markup_parse(tag_t *t, const char *str, ssize_t len) tag_markup_parse(tag_t *t, const char *str, ssize_t len)
{ {
static char const * const elements[] = { "title", NULL }; static char const * const elements[] = { "title", NULL };
markup_parser_data_t p = { markup_parser_data_t p =
{
.elements = elements, .elements = elements,
.on_element = &tag_markup_on_elem, .on_element = &tag_markup_on_elem,
.priv = t->name, .priv = t->name,
@ -183,7 +184,10 @@ taglist_draw(draw_context_t *ctx, int screen, widget_node_t *w,
tag = tag->next, area = area->next, i++) tag = tag->next, area = area->next, i++)
{ {
if (!data->show_empty && !tag->selected && !tag_isoccupied(tag)) if (!data->show_empty && !tag->selected && !tag_isoccupied(tag))
{
p_delete(&text[i]);
continue; continue;
}
area->x = w->area.x + prev_width; area->x = w->area.x + prev_width;
prev_width += area->width; prev_width += area->width;