X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Flibtbm.git;a=blobdiff_plain;f=src%2Ftbm_module.c;h=974c67bcffdab244cef067b8063d98c328f68668;hp=2a27021f25eb3f9af448ff42f89a9061c2caf9b7;hb=86bbaa419184bd0a189896b347a4fcbd9c894c54;hpb=3b5a63a96137b57886367b3b9b5b4d0cfc44d633 diff --git a/src/tbm_module.c b/src/tbm_module.c index 2a27021..974c67b 100644 --- a/src/tbm_module.c +++ b/src/tbm_module.c @@ -703,7 +703,10 @@ tbm_module_bufmgr_bo_alloc_with_format(tbm_module *module, int format, int bo_id case TBM_MODULE_TYPE_TBM_BACKEND: bufmgr_func = module->bufmgr_func; TBM_RETURN_VAL_SET_ERR_IF_FAIL(bufmgr_func, NULL, *error, TBM_ERROR_INVALID_OPERATION); - TBM_RETURN_VAL_SET_ERR_IF_FAIL(bufmgr_func->bufmgr_alloc_bo_with_format, NULL, *error, TBM_ERROR_NOT_SUPPORTED); + if (!bufmgr_func->bufmgr_alloc_bo_with_format) { + *error = TBM_ERROR_NOT_SUPPORTED; + return NULL; + } bo_data = bufmgr_func->bufmgr_alloc_bo_with_format(module->bufmgr_data, format, bo_idx, width, height, flags, error); break;