Fix memory leak of ecore timer
[platform/core/uifw/stt.git] / server / stte.c
index 89d4be0..2a00e12 100755 (executable)
 #include "stte.h"
 
 
-#define CLIENT_CLEAN_UP_TIME 500
-
-static Ecore_Timer* g_check_client_timer = NULL;
-
 int stte_main(int argc, char**argv, stte_request_callback_s *callback)
 {
        SLOG(LOG_DEBUG, TAG_STTD, "===== Start engine");
@@ -53,11 +49,6 @@ int stte_main(int argc, char**argv, stte_request_callback_s *callback)
 
        stt_network_initialize();
 
-       g_check_client_timer = ecore_timer_add(CLIENT_CLEAN_UP_TIME, sttd_cleanup_client, NULL);
-       if (NULL == g_check_client_timer) {
-               SLOG(LOG_WARN, TAG_STTD, "[Main Warning] Fail to create timer of client check");
-       }
-
        SLOG(LOG_DEBUG, TAG_STTD, "[Main] stt-service start...");
 
        SLOG(LOG_DEBUG, TAG_STTD, "=====");
@@ -124,4 +115,4 @@ int stte_set_private_data_requested_cb(stte_private_data_requested_cb callback)
                SLOG(LOG_ERROR, TAG_STTD, "[Server ERROR] Fail to send speech status");
        }
        return ret;
-}
+}
\ No newline at end of file