mirror of
https://github.com/rkd77/elinks.git
synced 2024-09-06 23:44:43 -04:00
[spidermonkey] keyboardEvent_finalizer
This commit is contained in:
parent
127b2f403b
commit
0432913bcb
@ -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 = {
|
||||
|
Loading…
Reference in New Issue
Block a user