projects
/
platform
/
core
/
api
/
player.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
10e9022
)
[v0.3.39] Invalid write regarding g_thread API resolved
61/107561/1
author
Eunhae Choi
<eunhae1.choi@samsung.com>
Wed, 28 Dec 2016 12:02:05 +0000
(21:02 +0900)
committer
Eunhae Choi
<eunhae1.choi@samsung.com>
Wed, 28 Dec 2016 12:02:05 +0000
(21:02 +0900)
Change-Id: I01a9712267bbfba7c9225d9234200b42869a0bd6
src/player.c
patch
|
blob
|
history
diff --git
a/src/player.c
b/src/player.c
index
f2fe531
..
d7e33b4
100644
(file)
--- a/
src/player.c
+++ b/
src/player.c
@@
-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);