summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDenis Kenzior <denkenz@gmail.com>2010-08-27 14:44:50 -0500
committerDenis Kenzior <denkenz@gmail.com>2010-08-27 19:01:44 -0500
commit07d576bdca20dc684c9843bf0d3ffdd0d41f5e57 (patch)
tree8cbfe0422a793154fe3cc747d99938bab6880ee5 /src
parentf528e5d5661606cc96495f3b585546050395a0ac (diff)
downloadofono-07d576bdca20dc684c9843bf0d3ffdd0d41f5e57.tar.bz2
stk: Free select item menu
If calling the agent failed for some reason
Diffstat (limited to 'src')
-rw-r--r--src/stk.c2
1 files changed, 2 insertions, 0 deletions
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;
}