mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
[spidermonkey] unref dom_node once in finalizer
This commit is contained in:
parent
379a8edbc9
commit
404e93c773
@ -214,12 +214,11 @@ static void element_finalize(JS::GCContext *op, JSObject *obj)
|
||||
free_list(el_private->listeners);
|
||||
mem_free(el_private);
|
||||
JS::SetReservedSlot(obj, 1, JS::UndefinedValue());
|
||||
}
|
||||
}
|
||||
if (el) {
|
||||
|
||||
dom_node_unref(el);
|
||||
JS::SetReservedSlot(obj, 0, JS::UndefinedValue());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
static bool
|
||||
|
Loading…
Reference in New Issue
Block a user