client->cb_ref_count = 0;
+ client->utt_id = 0;
+ client->reason = 0;
+ client->err_msg = NULL;
+
client->conn_timer = NULL;
+ client->credential = NULL;
+ client->credential_needed = false;
+ client->internal = false;
+
+ client->text_repeat = NULL;
+
g_client_list = g_list_append(g_client_list, client);
*tts = temp;
if (tts == NULL) {
SLOG(LOG_ERROR, TAG_TTSC, "Input parameter is NULL");
return TTS_ERROR_INVALID_PARAMETER;
- }
+ }
GList *iter = NULL;
tts_client_s *data = NULL;
while (0 != data->cb_ref_count) {
/* wait for release callback function */
}
+
+ if (NULL != data->err_msg) {
+ free(data->err_msg);
+ data->err_msg = NULL;
+ }
+
+ if (NULL != data->credential) {
+ free(data->credential);
+ data->credential = NULL;
+ }
+
+ if (NULL != data->text_repeat) {
+ free(data->text_repeat);
+ data->text_repeat = NULL;
+ }
+
free(data);
free(tts);
+ data = NULL;
+ tts = NULL;
+
SLOG(LOG_DEBUG, TAG_TTSC, "Client destroy");
g_list_free(iter);
return client->cb_ref_count;
}
+//LCOV_EXCL_START
int tts_client_get_connected_client_count()
{
GList *iter = NULL;
GList* tts_client_get_client_list()
{
return g_client_list;
-}
\ No newline at end of file
+}
+//LCOV_EXCL_STOP