X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Ftbm_module.c;h=ae8e848182dd80def33547e3af96bd694b34705c;hb=2ca8ae589a48d5885f3fff2c075dac04e3f6cc0e;hp=2644f820840627c40489606bb0fd4e266edcd904;hpb=de7f92cb137b03be9fbeea213f7943a641ff4f7e;p=platform%2Fcore%2Fuifw%2Flibtbm.git diff --git a/src/tbm_module.c b/src/tbm_module.c index 2644f82..ae8e848 100644 --- a/src/tbm_module.c +++ b/src/tbm_module.c @@ -345,7 +345,7 @@ err: /* LCOV_EXCL_STOP */ tbm_module * -tbm_module_load(tbm_bufmgr bufmgr, int fd) +tbm_module_load(int fd) { tbm_module *module; struct dirent **namelist; @@ -356,7 +356,6 @@ tbm_module_load(tbm_bufmgr bufmgr, int fd) TBM_ERR("fail to allocate the memory"); return NULL; } - module->bufmgr = bufmgr; /* try to load the hal-tbm backend module */ ret = _tbm_backend_load_hal_tbm(module); @@ -379,7 +378,7 @@ tbm_module_load(tbm_bufmgr bufmgr, int fd) return module; } - /* load bufmgr priv from configured path */ + /* load backend_module from configured path */ n = scandir(BUFMGR_MODULE_DIR, &namelist, 0, alphasort); if (n < 0) { TBM_ERR("no files : %s\n", BUFMGR_MODULE_DIR); @@ -455,8 +454,6 @@ tbm_module_unload(tbm_module *module) break; } - module->bufmgr = NULL; - free(module); } @@ -482,7 +479,7 @@ tbm_module_bufmgr_get_capabilities(tbm_module *module) } if (error != TBM_ERROR_NONE) { - TBM_ERR("fail to get capabilities of bufmgr"); + TBM_ERR("fail to get capabilities of tbm_module_bufmgr"); return 0; }