Fix memory leak in error handling

error handling during form gadget construction could leak, this fixes
the leak on error. Fixes coverity CID 1109875
This commit is contained in:
Vincent Sanders 2016-03-14 15:54:10 +00:00
parent fdbb413403
commit c53be10892

View File

@ -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;
}