summaryrefslogtreecommitdiff
path: root/render/box_construct.c
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2015-09-04 14:55:43 +0100
committerVincent Sanders <vince@kyllikki.org>2015-09-07 13:53:59 +0100
commit1f07c457401a6d944c26319571beb32f3b9009f5 (patch)
tree62c5f392ca3c2fe4f2a7f1ee8111843c3e2748e2 /render/box_construct.c
parentd137bda4547ec6ecc07dec4c32097428f022ed7c (diff)
downloadnetsurf-1f07c457401a6d944c26319571beb32f3b9009f5.tar.gz
netsurf-1f07c457401a6d944c26319571beb32f3b9009f5.tar.bz2
fix gadget resource leak (coverity #1109875)
Diffstat (limited to 'render/box_construct.c')
-rw-r--r--render/box_construct.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/render/box_construct.c b/render/box_construct.c
index 581c6f2cd..d518bd729 100644
--- a/render/box_construct.c
+++ b/render/box_construct.c
@@ -2619,6 +2619,7 @@ bool box_select(BOX_SPECIAL_PARAMS)
if (err != DOM_NO_ERR) {
dom_node_unref(c2);
dom_node_unref(c);
+ form_free_control(gadget);
return false;
}