Fix indentation
[platform/core/uifw/inputdelegator.git] / src / w-input-selector.cpp
index 237e4c4..1658c9d 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,
@@ -1258,7 +1260,6 @@ bool __compare_string(const char * smart_str, const char * template_str)
 
 bool _app_create(void* user_data)
 {
-       int width = 1000, height = 1000;
 //     App_Data* app_data = NULL;
        Evas_Object* layout = NULL;
        Evas_Object* conform = NULL;
@@ -1282,8 +1283,6 @@ bool _app_create(void* user_data)
 
                elm_win_title_set(window, PACKAGE);
                elm_win_borderless_set(window, EINA_TRUE);
-//             ecore_x_window_size_get(ecore_x_window_root_first_get(), &width, &height);
-               evas_object_resize(window, width, height);
                elm_win_indicator_mode_set(window, ELM_WIN_INDICATOR_SHOW);
        } else {
                LOGE("elm_win_add() is failed.");
@@ -1366,7 +1365,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);