From: Haejeong Kim Date: Fri, 29 Jan 2016 05:30:30 +0000 (+0900) Subject: Apply tizen coding rule X-Git-Tag: submit/tizen/20160129.061245^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=98a73c8e2f89e1ad7d8ea29f5c145d1ffe1c3d7c;p=platform%2Fcore%2Fapi%2Fimage-util.git Apply tizen coding rule Change-Id: Ie6e4e9bf5eec081c8b498373c62138d6f4427075 --- 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;