1
0
mirror of https://github.com/rkd77/elinks.git synced 2025-01-03 14:57:44 -05:00

[spidermonkey] Empty finalizer for attributes

There was double free. To be resolved later.
This commit is contained in:
Witold Filipczyk 2024-06-16 14:45:54 +02:00
parent 36571c79b3
commit 78b7499f52

View File

@ -62,12 +62,14 @@ static void attributes_finalize(JS::GCContext *op, JSObject *obj)
#ifdef ECMASCRIPT_DEBUG #ifdef ECMASCRIPT_DEBUG
fprintf(stderr, "%s:%s\n", __FILE__, __FUNCTION__); fprintf(stderr, "%s:%s\n", __FILE__, __FUNCTION__);
#endif #endif
#if 0
dom_namednodemap *attrs = (dom_namednodemap *)JS::GetMaybePtrFromReservedSlot<dom_namednodemap>(obj, 0); dom_namednodemap *attrs = (dom_namednodemap *)JS::GetMaybePtrFromReservedSlot<dom_namednodemap>(obj, 0);
if (attrs) { if (attrs) {
dom_namednodemap_unref(attrs); dom_namednodemap_unref(attrs);
} }
#endif
} }
JSClassOps attributes_ops = { JSClassOps attributes_ops = {