projects
/
platform
/
core
/
uifw
/
libtbm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fafd3ce
)
Fix mutex lock bug
author
Changyeon Lee
<cyeon.lee@samsung.com>
Wed, 2 Mar 2016 08:41:43 +0000
(17:41 +0900)
committer
Changyeon Lee
<cyeon.lee@samsung.com>
Wed, 2 Mar 2016 08:41:43 +0000
(17:41 +0900)
Change-Id: I597afd7f314cf2364b49e83f3fffa9dec8dd6468
src/tbm_bufmgr.c
patch
|
blob
|
history
diff --git
a/src/tbm_bufmgr.c
b/src/tbm_bufmgr.c
index
6ae70ea
..
8a7b32d
100644
(file)
--- a/
src/tbm_bufmgr.c
+++ b/
src/tbm_bufmgr.c
@@
-1841,8
+1841,10
@@
tbm_bufmgr_bind_native_display(tbm_bufmgr bufmgr, void *NativeDisplay)
pthread_mutex_lock(&bufmgr->lock);
- if (!bufmgr->backend->bufmgr_bind_native_display)
- return 0;
+ if (!bufmgr->backend->bufmgr_bind_native_display) {
+ pthread_mutex_unlock(&bufmgr->lock);
+ return 1;
+ }
ret = bufmgr->backend->bufmgr_bind_native_display(bufmgr, NativeDisplay);
if (!ret) {