From: Junkyeong Kim Date: Mon, 13 Feb 2017 06:57:58 +0000 (+0900) Subject: execute mutex unlock before false return X-Git-Tag: accepted/tizen/3.0/common/20170216.151517~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=51ae6cad8c165afe37e6225b1b7cd662c9eb4030;hp=399aa309e332aac33e6e0cd741646e1ffc429ebb;p=platform%2Fcore%2Fuifw%2Flibtbm.git execute mutex unlock before false return Change-Id: I5016870d1d7e68799c100dff259eb2ae4f408961 --- diff --git a/src/tbm_bufmgr.c b/src/tbm_bufmgr.c index 8dd0c30..9b79789 100644 --- a/src/tbm_bufmgr.c +++ b/src/tbm_bufmgr.c @@ -1589,7 +1589,11 @@ tbm_bufmgr_debug_queue_dump(char *path, int count, int onoff) } else { int w, h; - TBM_RETURN_VAL_IF_FAIL(path != NULL, 0); + if (path == NULL) { + TBM_LOG_E("path is null"); + pthread_mutex_unlock(&gLock); + return 0; + } TBM_LOG_D("path=%s count=%d onoff=%d\n", path, count, onoff); if (_tbm_util_get_max_surface_size(&w, &h) == 0) {