[markup] Fix memory leak in text handling

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2008-04-28 22:14:47 +02:00
parent f1ccb31bca
commit ca4821fc9e
1 changed files with 1 additions and 0 deletions

View File

@ -151,6 +151,7 @@ markup_parse_text(GMarkupParseContext *context __attribute__ ((unused)),
rlen = a_strlen(p->text) + 1 + text_len;
p_realloc(&p->text, rlen);
a_strncat(p->text, rlen, esc, text_len);
p_delete(&esc);
}
/** Create a markup_parser_data_t structure with elements list.