1
0
mirror of https://github.com/rkd77/elinks.git synced 2025-02-02 15:09:23 -05:00

[css] Free old_node_data

This commit is contained in:
Witold Filipczyk 2024-09-07 10:30:01 +02:00
parent df7457eeee
commit d8cb487650

View File

@ -1841,6 +1841,12 @@ set_libcss_node_data(void *pw, void *node, void *libcss_node_data)
if (err != DOM_NO_ERR) {
return CSS_NOMEM;
}
if (old_node_data) {
err = css_libcss_node_data_handler(&selection_handler,
CSS_NODE_DELETED,
NULL, node, NULL, old_node_data);
}
//assert(old_node_data == NULL);
return CSS_OK;