From: YoungJun Cho Date: Fri, 7 Dec 2018 10:03:40 +0000 (+0900) Subject: backend: fix wrong condition X-Git-Tag: accepted/tizen/5.0/unified/20181211.064530~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=846a28165fdd5485e5db564ad816e8e38cf825f8;p=platform%2Fcore%2Fuifw%2Flibtbm.git backend: fix wrong condition This patch fixes wrong condition. Change-Id: I742786aa5b71aeec5b806ab6acdd558a8bca34a1 Signed-off-by: YoungJun Cho --- diff --git a/src/tbm_backend.c b/src/tbm_backend.c index bec6147..4c9ce19 100644 --- a/src/tbm_backend.c +++ b/src/tbm_backend.c @@ -85,7 +85,7 @@ tbm_backend_bufmgr_free_bufmgr_func(tbm_bufmgr bufmgr, tbm_backend_bufmgr_func * { TBM_RETURN_IF_FAIL(bufmgr); - if (!func) + if (func) free(func); } @@ -124,7 +124,7 @@ tbm_backend_bufmgr_free_bo_func(tbm_bufmgr bufmgr, tbm_backend_bo_func *func) { TBM_RETURN_IF_FAIL(bufmgr); - if (!func) + if (func) free(func); }