From 07d576bdca20dc684c9843bf0d3ffdd0d41f5e57 Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Fri, 27 Aug 2010 14:44:50 -0500 Subject: [PATCH] stk: Free select item menu If calling the agent failed for some reason --- src/stk.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/stk.c b/src/stk.c index a75b2b50..f5be1b71 100644 --- a/src/stk.c +++ b/src/stk.c @@ -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; }