Revert "Return copy of g_client_list" 00/238200/1
authorSuyeon Hwang <stom.hwang@samsung.com>
Thu, 9 Jul 2020 09:11:36 +0000 (09:11 +0000)
committerSuyeon Hwang <stom.hwang@samsung.com>
Thu, 9 Jul 2020 09:11:36 +0000 (09:11 +0000)
This reverts commit b8d4d9fd6809f68d9df8255b47dea97f52fe1f25.

Reason for revert: not intended merge

Change-Id: I56fe5121e5c9590af729386945d74e80657ff315

client/tts.c
client/tts_client.c

index 4ab960f..513a63c 100644 (file)
@@ -167,8 +167,6 @@ void __tts_config_voice_changed_cb(const char* before_lang, int before_voice_typ
                }
        }
 
-       g_list_free(client_list);
-
        return;
 }
 
@@ -2412,8 +2410,6 @@ int __tts_cb_error(int uid, tts_error_e reason, int utt_id, char* err_msg)
                                iter = g_list_next(iter);
                        }
                }
-
-               g_list_free(client_list);
        } else {
                tts_client_s* client = tts_client_get_by_uid(uid);
 
index 0ed68a8..f0f0a82 100644 (file)
@@ -319,13 +319,9 @@ int tts_client_get_mode_client_count(tts_mode_e mode)
        return number;
 }
 
+// FIXME: remove this function
 GList* tts_client_get_client_list()
 {
-       GList* copy_list = NULL;
-       pthread_mutex_lock(&g_client_list_mutex);
-       copy_list = g_list_copy(g_client_list);
-       pthread_mutex_unlock(&g_client_list_mutex);
-
-       return copy_list;
+       return g_client_list;
 }
 //LCOV_EXCL_STOP