diff options
Diffstat (limited to 'content/handlers/javascript/duktape/Event.bnd')
-rw-r--r-- | content/handlers/javascript/duktape/Event.bnd | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/content/handlers/javascript/duktape/Event.bnd b/content/handlers/javascript/duktape/Event.bnd index aa69daac3..2c24cfa73 100644 --- a/content/handlers/javascript/duktape/Event.bnd +++ b/content/handlers/javascript/duktape/Event.bnd @@ -182,8 +182,8 @@ method Event::initEvent () cancellable = duk_get_boolean(ctx, 2); exc = dom_event_init(priv->evt, text_str, bubbles, cancellable); + dom_string_unref(text_str); if (exc != DOM_NO_ERR) { - dom_string_unref(text_str); return 0; } |