diff --git a/render/box_construct.c b/render/box_construct.c index adb450946..8434253a3 100644 --- a/render/box_construct.c +++ b/render/box_construct.c @@ -2654,6 +2654,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; }