From 98a73c8e2f89e1ad7d8ea29f5c145d1ffe1c3d7c Mon Sep 17 00:00:00 2001 From: Haejeong Kim Date: Fri, 29 Jan 2016 14:30:30 +0900 Subject: [PATCH] Apply tizen coding rule Change-Id: Ie6e4e9bf5eec081c8b498373c62138d6f4427075 --- src/image_util.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/image_util.c b/src/image_util.c index 4f7ba51..2345178 100755 --- a/src/image_util.c +++ b/src/image_util.c @@ -819,9 +819,9 @@ int image_util_extract_color_from_memory(const unsigned char *image_buffer, int image_util_retvm_if((module == NULL), IMAGE_UTIL_ERROR_NO_SUCH_FILE, "fail to open module"); g_module_symbol(module, IMGCV_FUNC_NAME, (gpointer *)&mmutil_imgcv_module_func); - if (!mmutil_imgcv_module_func) { + if (!mmutil_imgcv_module_func) g_module_close(module); - } + image_util_retvm_if((mmutil_imgcv_module_func == NULL), IMAGE_UTIL_ERROR_INVALID_OPERATION, "fail to get symbol"); unsigned char r_color, g_color, b_color; -- 2.34.1