mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-02-11 03:54:30 +03:00
Fix leak of frame element name.
This commit is contained in:
parent
88838d51bb
commit
1d326a8a1c
@ -2223,14 +2223,17 @@ bool box_create_frameset(struct content_html_frames *f, dom_node *n,
|
||||
err = dom_node_get_next_sibling(c,
|
||||
&next);
|
||||
if (err != DOM_NO_ERR) {
|
||||
dom_string_unref(name);
|
||||
dom_node_unref(c);
|
||||
return false;
|
||||
}
|
||||
|
||||
dom_string_unref(name);
|
||||
dom_node_unref(c);
|
||||
c = next;
|
||||
} else {
|
||||
/* Got a FRAME or FRAMESET element */
|
||||
dom_string_unref(name);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user