[markup] Fix memory leak in text handling
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
f1ccb31bca
commit
ca4821fc9e
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue