summaryrefslogtreecommitdiff
path: root/render
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2015-10-31 16:13:58 +0000
committerMichael Drake <tlsa@netsurf-browser.org>2015-10-31 16:14:40 +0000
commit71f296a41ce7509ebbf052c80cf0cdaaf6ce0451 (patch)
tree7b29f35a25f3d6f7860bcb899b1011f6bbfc311a /render
parent519775a65cbe3609b1f3795465365801aaa671ac (diff)
downloadnetsurf-71f296a41ce7509ebbf052c80cf0cdaaf6ce0451.tar.gz
netsurf-71f296a41ce7509ebbf052c80cf0cdaaf6ce0451.tar.bz2
Fix dom document leak for framesets.
Diffstat (limited to 'render')
-rw-r--r--render/box_construct.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/render/box_construct.c b/render/box_construct.c
index d518bd729..2ad5eb26c 100644
--- a/render/box_construct.c
+++ b/render/box_construct.c
@@ -2217,6 +2217,11 @@ bool box_create_frameset(struct content_html_frames *f, dom_node *n,
}
}
+ /* If the last child wasn't a frame, we still need to unref it */
+ if (c != NULL) {
+ dom_node_unref(c);
+ }
+
return true;
}