Fix double pthread mutex unlock 59/171259/1
authorsooyeon.kim <sooyeon.kim@samsung.com>
Mon, 19 Feb 2018 13:49:32 +0000 (22:49 +0900)
committerSooyeon Kim <sooyeon.kim@samsung.com>
Wed, 28 Feb 2018 02:43:47 +0000 (02:43 +0000)
Change-Id: I814ec001cde6911f114ad5189efbc7d749a3922e
Signed-off-by: sooyeon.kim <sooyeon.kim@samsung.com>
(cherry picked from commit 8ca51decfba60d09550a09256a805b43e4b2b708)

server/ttsd_data.cpp

index 9181131..bb17c7d 100644 (file)
@@ -454,8 +454,6 @@ int __get_sound_data(int index, sound_data_s** data)
 #ifdef DATA_DEBUG
                SLOG(LOG_DEBUG, tts_tag(), "[DATA] There is no wav data");
 #endif
-               /* mutex is unlocked */
-               pthread_mutex_unlock(&g_sound_data_mutex);
                return -1;
        }