0
0
mirror of https://github.com/rkd77/elinks.git synced 2025-06-30 22:19:29 -04:00

[spidermonkey] memory leak

This commit is contained in:
Witold Filipczyk 2025-01-30 12:06:37 +01:00
parent 8f550b8108
commit 180e17a129
2 changed files with 2 additions and 2 deletions

View File

@ -589,7 +589,7 @@ dump_xhtml(struct cache_entry *cached, struct document *document, int parse)
if (!cached2) {
return;
}
cached2->head = cached->head;
mem_free_set(&cached2->head, cached->head);
cached->head = NULL;
add_fragment(cached2, 0, document->text.source, document->text.length);
@ -599,7 +599,6 @@ dump_xhtml(struct cache_entry *cached, struct document *document, int parse)
document->cache_id = cached2->cache_id;
document->cached = cached2;
render_xhtml_document(cached2, document, &document->text);
object_unlock(cached);
return;
}
render_html_document(cached, document, &document->text);

View File

@ -65,6 +65,7 @@ static void nodeList2_finalize(JS::GCContext *op, JSObject *obj)
if (sni) {
free_list(*sni);
mem_free(sni);
}
}