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:
31bd470
)
Check valid gBufmgr in tbm_bufmgr_deinit
90/70090/1
accepted/tizen/common/20160519.191105
accepted/tizen/ivi/20160519.002824
accepted/tizen/mobile/20160519.002739
accepted/tizen/tv/20160519.002805
accepted/tizen/wearable/20160519.002751
submit/tizen/20160518.062502
author
Changyeon Lee
<cyeon.lee@samsung.com>
Wed, 18 May 2016 04:51:36 +0000
(13:51 +0900)
committer
Changyeon Lee
<cyeon.lee@samsung.com>
Wed, 18 May 2016 04:51:47 +0000
(13:51 +0900)
Change-Id: Ic3ce7340f7b6f50bb9bea3591d4ed03c24777a4f
src/tbm_bufmgr.c
patch
|
blob
|
history
diff --git
a/src/tbm_bufmgr.c
b/src/tbm_bufmgr.c
index
702b709
..
5923b6d
100644
(file)
--- a/
src/tbm_bufmgr.c
+++ b/
src/tbm_bufmgr.c
@@
-597,6
+597,12
@@
tbm_bufmgr_deinit(tbm_bufmgr bufmgr)
pthread_mutex_lock(&gLock);
+ if (!gBufMgr) {
+ TBM_LOG_E("gBufmgr already destroy: bufmgr:%p\n", bufmgr);
+ pthread_mutex_unlock(&gLock);
+ return;
+ }
+
bufmgr->ref_count--;
if (bufmgr->ref_count > 0) {
DBG("tizen bufmgr destroy: bufmgr:%p, ref_count:%d\n",