From cdc77136621a67396b08eba0cacf6bfc6f79b809 Mon Sep 17 00:00:00 2001 From: Daniel Silverstone Date: Mon, 6 May 2019 12:19:54 +0100 Subject: Add some missing unrefs Signed-off-by: Daniel Silverstone --- content/handlers/javascript/duktape/Event.bnd | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'content/handlers') 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; %} -- cgit v1.2.3