1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-11-04 08:17:17 -05:00

[quickjs] Memleak in doctype

This commit is contained in:
Witold Filipczyk 2024-07-18 21:40:55 +02:00
parent 8797227b19
commit 83b3185e11

View File

@ -1897,7 +1897,7 @@ js_doctype_finalizer(JSRuntime *rt, JSValue val)
REF_JS(val);
dom_node *node = (dom_node *)JS_GetOpaque(val, js_doctype_class_id);
attr_erase_from_map(map_doctypes, node);
attr_erase_from_map_str(map_doctypes, node);
if (node) {
dom_node_unref(node);