release gadget allocation on error path (Coverity 1109875)

This commit is contained in:
Vincent Sanders 2014-11-30 11:23:30 +00:00
parent 1c735140b6
commit ca74e0060d
1 changed files with 1 additions and 0 deletions

View File

@ -2608,6 +2608,7 @@ bool box_select(BOX_SPECIAL_PARAMS)
err = dom_node_get_first_child(c, &c2);
if (err != DOM_NO_ERR) {
dom_node_unref(c);
form_free_control(gadget);
return false;
}