mirror of
https://github.com/rkd77/elinks.git
synced 2025-02-02 15:09:23 -05:00
[dom] dom_namednodemap_unref(attrs) not dom_node_unref(attrs)
This commit is contained in:
parent
fb30e10f91
commit
f91d9b3d06
@ -822,7 +822,7 @@ el_dump_element(struct string *buf, dom_node *node, bool toSortAttrs)
|
||||
dom_exception exc;
|
||||
dom_string *node_name = NULL;
|
||||
dom_node_type type;
|
||||
dom_namednodemap *attrs;
|
||||
dom_namednodemap *attrs = NULL;
|
||||
|
||||
/* Only interested in element nodes */
|
||||
exc = dom_node_get_node_type(node, &type);
|
||||
@ -887,7 +887,9 @@ el_dump_element(struct string *buf, dom_node *node, bool toSortAttrs)
|
||||
}
|
||||
}
|
||||
}
|
||||
dom_node_unref(attrs);
|
||||
}
|
||||
if (attrs) {
|
||||
dom_namednodemap_unref(attrs);
|
||||
}
|
||||
add_char_to_string(buf, '>');
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user