1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

[spidermonkey] keyboardEvent_finalizer

This commit is contained in:
Witold Filipczyk 2022-11-10 19:40:26 +01:00
parent 127b2f403b
commit 0432913bcb

View File

@ -69,11 +69,16 @@ struct keyboard {
};
static void
keyboardEvent_finalize(JS::GCContext *op, JSObject *xhr_obj)
keyboardEvent_finalize(JS::GCContext *op, JSObject *keyb_obj)
{
#ifdef ECMASCRIPT_DEBUG
fprintf(stderr, "%s:%s\n", __FILE__, __FUNCTION__);
#endif
struct keyboard *keyb = JS::GetMaybePtrFromReservedSlot<struct keyboard>(keyb_obj, 0);
if (keyb) {
mem_free(keyb);
}
}
JSClassOps keyboardEvent_ops = {