mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-01-23 02:42:11 +03:00
Fix reference counting in generic sibling selection callback.
This commit is contained in:
parent
26a92340e2
commit
4b71394462
@ -691,11 +691,12 @@ css_error named_generic_sibling_node(void *pw, void *node,
|
||||
|
||||
if (dom_string_caseless_lwc_isequal(name,
|
||||
qname->name)) {
|
||||
dom_string_unref(name);
|
||||
dom_node_unref(n);
|
||||
/** \todo Sort out reference counting */
|
||||
*sibling = n;
|
||||
break;
|
||||
}
|
||||
dom_string_unref(name);
|
||||
}
|
||||
|
||||
err = dom_node_get_previous_sibling(n, &prev);
|
||||
|
Loading…
Reference in New Issue
Block a user