1
0
mirror of https://github.com/rkd77/elinks.git synced 2025-01-03 14:57:44 -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 static void
keyboardEvent_finalize(JS::GCContext *op, JSObject *xhr_obj) keyboardEvent_finalize(JS::GCContext *op, JSObject *keyb_obj)
{ {
#ifdef ECMASCRIPT_DEBUG #ifdef ECMASCRIPT_DEBUG
fprintf(stderr, "%s:%s\n", __FILE__, __FUNCTION__); fprintf(stderr, "%s:%s\n", __FILE__, __FUNCTION__);
#endif #endif
struct keyboard *keyb = JS::GetMaybePtrFromReservedSlot<struct keyboard>(keyb_obj, 0);
if (keyb) {
mem_free(keyb);
}
} }
JSClassOps keyboardEvent_ops = { JSClassOps keyboardEvent_ops = {