From 51ae6cad8c165afe37e6225b1b7cd662c9eb4030 Mon Sep 17 00:00:00 2001 From: Junkyeong Kim Date: Mon, 13 Feb 2017 15:57:58 +0900 Subject: [PATCH 1/1] execute mutex unlock before false return Change-Id: I5016870d1d7e68799c100dff259eb2ae4f408961 --- src/tbm_bufmgr.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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) { -- 2.7.4