summaryrefslogtreecommitdiff
path: root/javascript
diff options
context:
space:
mode:
Diffstat (limited to 'javascript')
-rw-r--r--javascript/duktape/Event.bnd5
1 files changed, 5 insertions, 0 deletions
diff --git a/javascript/duktape/Event.bnd b/javascript/duktape/Event.bnd
index 38e4640a7..a0bc3c3e7 100644
--- a/javascript/duktape/Event.bnd
+++ b/javascript/duktape/Event.bnd
@@ -19,6 +19,11 @@ init Event (struct dom_event *evt)
dom_event_ref(evt);
%}
+fini Event ()
+%{
+ dom_event_unref(priv->evt);
+%}
+
/* Note: many of these could be automatics once nsgenbind gets there. */
getter Event::type ()