summaryrefslogtreecommitdiff
path: root/render/box_construct.c
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2013-10-25 19:57:05 +0100
committerMichael Drake <tlsa@netsurf-browser.org>2013-10-25 19:57:05 +0100
commit1d326a8a1c83f5dd7e1390d1b806138981f56574 (patch)
treea656eb5e0b1616406df2d039b3f88aa85a122829 /render/box_construct.c
parent88838d51bb77e1f4dd7da9621f5f34c90f753f4d (diff)
downloadnetsurf-1d326a8a1c83f5dd7e1390d1b806138981f56574.tar.gz
netsurf-1d326a8a1c83f5dd7e1390d1b806138981f56574.tar.bz2
Fix leak of frame element name.
Diffstat (limited to 'render/box_construct.c')
-rw-r--r--render/box_construct.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/render/box_construct.c b/render/box_construct.c
index 37a870243..cc30d896c 100644
--- a/render/box_construct.c
+++ b/render/box_construct.c
@@ -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;
}
}