summaryrefslogtreecommitdiff
path: root/content
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2021-07-05 14:58:02 +0100
committerMichael Drake <tlsa@netsurf-browser.org>2021-07-05 14:59:10 +0100
commit251cce29b775967f756ee1294f27aeb5499cf0d9 (patch)
treeba772cfb2bf8c5cb534f4287b80a010ee11877ec /content
parent5a6bb392184decd72779ea93c4e0ecc492b3d77f (diff)
downloadnetsurf-master.tar.gz
netsurf-master.tar.bz2
CSS: Selection callbacks: Update to latest LibDOM API.HEADmaster
Diffstat (limited to 'content')
-rw-r--r--content/handlers/css/select.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/content/handlers/css/select.c b/content/handlers/css/select.c
index 6dc1d9b6f..c77644b43 100644
--- a/content/handlers/css/select.c
+++ b/content/handlers/css/select.c
@@ -473,6 +473,7 @@ css_error named_ancestor_node(void *pw, void *node,
{
dom_element_named_ancestor_node(node, qname->name,
(struct dom_element **)ancestor);
+ dom_node_unref(*ancestor);
return CSS_OK;
}
@@ -493,6 +494,7 @@ css_error named_parent_node(void *pw, void *node,
{
dom_element_named_parent_node(node, qname->name,
(struct dom_element **)parent);
+ dom_node_unref(*parent);
return CSS_OK;
}
@@ -642,6 +644,7 @@ css_error named_generic_sibling_node(void *pw, void *node,
css_error parent_node(void *pw, void *node, void **parent)
{
dom_element_parent_node(node, (struct dom_element **)parent);
+ dom_node_unref(*parent);
return CSS_OK;
}