Fix leak of frame element name.

This commit is contained in:
Michael Drake 2013-10-25 19:57:05 +01:00
parent 88838d51bb
commit 1d326a8a1c
1 changed files with 3 additions and 0 deletions

View File

@ -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;
}
}