mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-11-22 14:31:20 +03:00
JS dom event binding: Squash leak of string.
This commit is contained in:
parent
74b8767ee2
commit
3bf39f7f2c
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user