mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-01-15 15:19:19 +03:00
Fix ref counting issue in meta tag finder.
This commit is contained in:
parent
e54e2fd0fa
commit
3c790bf12d
@ -1013,10 +1013,12 @@ static bool html_meta_refresh(html_content *c, dom_node *head)
|
||||
"noscript") == 0) {
|
||||
if (html_meta_refresh(c, n) == false) {
|
||||
/* Some error occurred */
|
||||
dom_string_unref(name);
|
||||
dom_node_unref(n);
|
||||
return false;
|
||||
} else if (c->base.refresh) {
|
||||
/* Meta refresh found - stop */
|
||||
dom_string_unref(name);
|
||||
dom_node_unref(n);
|
||||
return true;
|
||||
}
|
||||
@ -1025,14 +1027,17 @@ static bool html_meta_refresh(html_content *c, dom_node *head)
|
||||
if (html_meta_refresh_process_element(c,
|
||||
n) == false) {
|
||||
/* Some error occurred */
|
||||
dom_string_unref(name);
|
||||
dom_node_unref(n);
|
||||
return false;
|
||||
} else if (c->base.refresh != NULL) {
|
||||
/* Meta refresh found - stop */
|
||||
dom_string_unref(name);
|
||||
dom_node_unref(n);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
dom_string_unref(name);
|
||||
}
|
||||
|
||||
exc = dom_node_get_next_sibling(n, &next);
|
||||
|
Loading…
Reference in New Issue
Block a user