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

[spidermonkey] unref dom_node once in finalizer

This commit is contained in:
Witold Filipczyk 2024-01-30 20:29:08 +01:00
parent 379a8edbc9
commit 404e93c773

View File

@ -214,13 +214,12 @@ static void element_finalize(JS::GCContext *op, JSObject *obj)
free_list(el_private->listeners); free_list(el_private->listeners);
mem_free(el_private); mem_free(el_private);
JS::SetReservedSlot(obj, 1, JS::UndefinedValue()); JS::SetReservedSlot(obj, 1, JS::UndefinedValue());
}
}
if (el) {
dom_node_unref(el); dom_node_unref(el);
JS::SetReservedSlot(obj, 0, JS::UndefinedValue()); JS::SetReservedSlot(obj, 0, JS::UndefinedValue());
} }
} }
}
static bool static bool
element_get_property_attributes(JSContext *ctx, unsigned int argc, JS::Value *vp) element_get_property_attributes(JSContext *ctx, unsigned int argc, JS::Value *vp)