From: sooyeon.kim Date: Mon, 20 Feb 2017 11:30:39 +0000 (+0900) Subject: Add memory releaser in ttsd_player.c X-Git-Tag: accepted/tizen/3.0/common/20170224.130006^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F79%2F115579%2F2;p=platform%2Fcore%2Fuifw%2Ftts.git Add memory releaser in ttsd_player.c Change-Id: If1a6cbdbe9ef78e37cab93d80b8f580c1e195057 Signed-off-by: sooyeon.kim --- diff --git a/server/ttsd_player.c b/server/ttsd_player.c index 67acfba..9c6760a 100644 --- a/server/ttsd_player.c +++ b/server/ttsd_player.c @@ -385,6 +385,12 @@ static void __play_thread(void *data, Ecore_Thread *thread) } } SLOG(LOG_INFO, tts_tag(), "[Player] Finish utterance : uid(%d), uttid(%d)", player->uid, sound_data->utt_id); + if (NULL != sound_data->data) { + free(sound_data->data); + sound_data->data = NULL; + } + free(sound_data); + sound_data = NULL; continue; } }