diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2015-10-31 16:13:58 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2015-10-31 16:14:40 +0000 |
commit | 71f296a41ce7509ebbf052c80cf0cdaaf6ce0451 (patch) | |
tree | 7b29f35a25f3d6f7860bcb899b1011f6bbfc311a | |
parent | 519775a65cbe3609b1f3795465365801aaa671ac (diff) | |
download | netsurf-71f296a41ce7509ebbf052c80cf0cdaaf6ce0451.tar.gz netsurf-71f296a41ce7509ebbf052c80cf0cdaaf6ce0451.tar.bz2 |
Fix dom document leak for framesets.
-rw-r--r-- | render/box_construct.c | 5 |
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; } |