Fix memory leak of ecore timer
[platform/core/uifw/tts.git] / server / ttse.c
index 01eb7f0..44b61c1 100755 (executable)
 
 #include "ttse.h"
 
-#define CLIENT_CLEAN_UP_TIME 500
-
-static Ecore_Timer* g_check_client_timer = NULL;
-
 static ttsd_mode_e g_tts_mode = TTSD_MODE_DEFAULT;
 
 const char* tts_tag()
@@ -109,11 +105,6 @@ int ttse_main(int argc, char** argv, ttse_request_callback_s *callback)
                SLOG(LOG_WARN, tts_tag(), "[WARNING] Fail to initialize network");
        }
 
-       g_check_client_timer = ecore_timer_add(CLIENT_CLEAN_UP_TIME, ttsd_cleanup_client, NULL);
-       if (NULL == g_check_client_timer) {
-               SLOG(LOG_WARN, tts_tag(), "[WARNING] Fail to create timer");
-       }
-
        SLOG(LOG_DEBUG, tts_tag(), "====");
        SLOG(LOG_DEBUG, tts_tag(), "");
 
@@ -213,4 +204,4 @@ int ttse_set_private_data_requested_cb(ttse_private_data_requested_cb callback_f
        }
 
        return ret;
-}
+}
\ No newline at end of file