mirror of
https://github.com/rkd77/elinks.git
synced 2025-02-02 15:09:23 -05:00
[document] Free previous document->title if was set
This commit is contained in:
parent
a476ddd419
commit
263a06396d
@ -2631,10 +2631,10 @@ render_html_document(struct cache_entry *cached, struct document *document,
|
||||
if (title.length) {
|
||||
/* CSM_DEFAULT because init_html_parser() did not
|
||||
* decode entities in the title. */
|
||||
document->title = convert_string(renderer_context.convert_table,
|
||||
mem_free_set(&document->title, convert_string(renderer_context.convert_table,
|
||||
title.source, title.length,
|
||||
document->options.cp,
|
||||
CSM_DEFAULT, NULL, NULL, NULL);
|
||||
CSM_DEFAULT, NULL, NULL, NULL));
|
||||
}
|
||||
done_string(&title);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user