1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-11-04 08:17:17 -05:00

[mujs] dom_node_unref in attr finalizer

This commit is contained in:
Witold Filipczyk 2024-08-09 15:47:43 +02:00
parent 98e7ee5c8b
commit dd74b31fda

View File

@ -101,6 +101,13 @@ static
void mjs_attr_finalizer(js_State *J, void *node)
{
attr_erase_from_map(map_attrs, node);
if (node) {
#ifdef ECMASCRIPT_DEBUG
fprintf(stderr, "Before: %s:%d\n", __FUNCTION__, __LINE__);
#endif
dom_node_unref((dom_node *)node);
}
}
void