Add some missing unrefs

Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
This commit is contained in:
Daniel Silverstone 2019-05-06 12:19:54 +01:00
parent 2c49123a27
commit cdc7713662

View File

@ -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;
%}