From 71f296a41ce7509ebbf052c80cf0cdaaf6ce0451 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Sat, 31 Oct 2015 16:13:58 +0000 Subject: Fix dom document leak for framesets. --- render/box_construct.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'render/box_construct.c') 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; } -- cgit v1.2.3