1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-06-25 01:05:37 +00:00

[document] Free previous document->title if was set

This commit is contained in:
Witold Filipczyk 2023-10-27 16:54:18 +02:00
parent a476ddd419
commit 263a06396d

View File

@ -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);