Fix reference counting in generic sibling selection callback.

This commit is contained in:
Michael Drake 2012-07-23 13:21:57 +01:00
parent 26a92340e2
commit 4b71394462

View File

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