[v0.3.42] Invalid write regarding g_thread API resolved 27/107527/1
authorEunhae Choi <eunhae1.choi@samsung.com>
Wed, 28 Dec 2016 10:26:08 +0000 (19:26 +0900)
committerEunhae Choi <eunhae1.choi@samsung.com>
Wed, 28 Dec 2016 10:26:48 +0000 (19:26 +0900)
Change-Id: Ifd69e83ae1d6fc4ab0211d7631bce2b98b91f2cd

packaging/capi-media-player.spec
src/player.c

index 1a5aa2999aecd0db01c18641613c4cdbdb4763bd..70befa71d488a85b0f98acce8000518b15d77f06 100644 (file)
@@ -1,6 +1,6 @@
 Name:       capi-media-player
 Summary:    A Media Player API
-Version:    0.3.41
+Version:    0.3.42
 Release:    0
 Group:      Multimedia/API
 License:    Apache-2.0
index be7a808b1b74881462b4d0e1ab8ef59fab1e9829..763f6e7b05929ee5f902a8c130e4a77487c94c78 100644 (file)
@@ -1279,7 +1279,7 @@ static void _player_event_queue_destroy(callback_cb_info_s * cb_info)
        g_mutex_unlock(&ev->mutex);
 
        g_thread_join(ev->thread);
-       g_thread_unref(ev->thread);
+       ev->thread = NULL;
 
        while (!g_queue_is_empty(ev->queue)) {
                event_data = (_player_cb_data *) g_queue_pop_head(ev->queue);
@@ -1551,7 +1551,6 @@ static void callback_destroy(callback_cb_info_s * cb_info)
        cb_info->fd = cb_info->data_fd = INVALID_DEFAULT_VALUE;
 
        g_thread_join(cb_info->thread);
-       g_thread_unref(cb_info->thread);
        cb_info->thread = NULL;
 
        LOGI("%p Callback destroyed", cb_info);