Fix ref counting issue in named sibling selection callback.

This commit is contained in:
Michael Drake 2012-07-22 21:22:05 +01:00
parent 5dadb1a0ec
commit 209d3a5ccf
1 changed files with 2 additions and 1 deletions

View File

@ -638,9 +638,10 @@ css_error named_sibling_node(void *pw, void *node,
dom_node_unref(n);
if (dom_string_caseless_lwc_isequal(name, qname->name)) {
/** \todo Sort out reference counting */
*sibling = n;
}
dom_string_unref(name);
}
return CSS_OK;