mirror of
https://github.com/rkd77/elinks.git
synced 2025-04-18 00:47:36 -04:00
[mujs] dom_string_unref
This commit is contained in:
parent
5779cd170b
commit
b9d266c52c
@ -209,6 +209,10 @@ mjs_event_constructor(js_State *J)
|
|||||||
// js_pop(J, 1);
|
// js_pop(J, 1);
|
||||||
exc = dom_event_init(event, typ, bubbles, cancelable);
|
exc = dom_event_init(event, typ, bubbles, cancelable);
|
||||||
|
|
||||||
|
if (typ) {
|
||||||
|
dom_string_unref(typ);
|
||||||
|
}
|
||||||
|
|
||||||
js_newobject(J);
|
js_newobject(J);
|
||||||
{
|
{
|
||||||
js_newuserdata(J, "event", event, mjs_event_finalizer);
|
js_newuserdata(J, "event", event, mjs_event_finalizer);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user