Fix memory leak issue
[platform/core/uifw/inputdelegator.git] / src / w-input-selector.cpp
index 237e4c4..f9c1243 100755 (executable)
@@ -1019,8 +1019,10 @@ unsigned int _update_smartreply_items(void *user_data)
                                }
                        }
 
-                       if (matched == true)
+                       if (matched == true) {
+                               free(reply);
                                continue;
+                       }
 
                        elm_genlist_item_append(app_data->genlist,
                                                itc,
@@ -1366,7 +1368,6 @@ void _app_service(app_control_h service, void* user_data)
                        } else if (!strncmp(mime_type, "audio/", strlen("audio/"))) {
                                app_data->mime_type = MIME_TYPE_AUDIO;
                                app_data->app_type = APP_TYPE_STT;
-                               g_set_mimetype_in_app_service = true;
                                _stt_clicked_cb((void *)app_data, NULL, NULL);
                                if (mime_type)
                                        free(mime_type);