summaryrefslogtreecommitdiff
path: root/content/handlers/javascript
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@digital-scurf.org>2019-05-06 12:19:54 +0100
committerDaniel Silverstone <dsilvers@digital-scurf.org>2019-05-06 12:20:04 +0100
commitcdc77136621a67396b08eba0cacf6bfc6f79b809 (patch)
treeb5296667adc79d59432e35087c9553243b8f530a /content/handlers/javascript
parent2c49123a270b2e723c76516750e9325eb6ab99dc (diff)
downloadnetsurf-cdc77136621a67396b08eba0cacf6bfc6f79b809.tar.gz
netsurf-cdc77136621a67396b08eba0cacf6bfc6f79b809.tar.bz2
Add some missing unrefs
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
Diffstat (limited to 'content/handlers/javascript')
-rw-r--r--content/handlers/javascript/duktape/Event.bnd4
1 files changed, 4 insertions, 0 deletions
diff --git a/content/handlers/javascript/duktape/Event.bnd b/content/handlers/javascript/duktape/Event.bnd
index 2d0d6a548..aa69daac3 100644
--- a/content/handlers/javascript/duktape/Event.bnd
+++ b/content/handlers/javascript/duktape/Event.bnd
@@ -54,6 +54,8 @@ getter Event::target ()
if (exc != DOM_NO_ERR) return 0;
dukky_push_node(ctx, et);
+
+ dom_node_unref(et);
return 1;
%}
@@ -67,6 +69,8 @@ getter Event::currentTarget ()
if (exc != DOM_NO_ERR) return 0;
dukky_push_node(ctx, et);
+
+ dom_node_unref(et);
return 1;
%}