stk: Free select item menu

If calling the agent failed for some reason
This commit is contained in:
Denis Kenzior 2010-08-27 14:44:50 -05:00
parent f528e5d566
commit 07d576bdca
1 changed files with 2 additions and 0 deletions

View File

@ -1046,6 +1046,8 @@ static gboolean handle_command_select_item(const struct stk_command *cmd,
request_selection_cb, stk,
request_selection_destroy,
stk->timeout * 1000) < 0) {
request_selection_destroy(stk);
rsp->result.type = STK_RESULT_TYPE_TERMINAL_BUSY;
return TRUE;
}