Remove resource leak 39/244139/1 accepted/tizen_6.0_unified accepted/tizen_6.0_unified_hotfix tizen_6.0 tizen_6.0_hotfix accepted/tizen/6.0/unified/20201030.121447 accepted/tizen/6.0/unified/hotfix/20201103.003713 accepted/tizen/6.0/unified/hotfix/20201103.050531 accepted/tizen/unified/20200917.141757 submit/tizen/20200916.012329 submit/tizen/20200917.011112 submit/tizen_6.0/20201029.205102 submit/tizen_6.0_hotfix/20201102.192502 submit/tizen_6.0_hotfix/20201103.114802 tizen_6.0.m2_release
authorjiyong.min <jiyong.min@samsung.com>
Tue, 15 Sep 2020 07:59:49 +0000 (16:59 +0900)
committerjiyong.min <jiyong.min@samsung.com>
Tue, 15 Sep 2020 07:59:49 +0000 (16:59 +0900)
Change-Id: I05a371cca08030562ba1f6a95845d70ea31a4b03

packaging/capi-media-image-util.spec
test/image_util_testsuite.c

index 082a5e5..d3fc3f4 100644 (file)
@@ -1,6 +1,6 @@
 Name:       capi-media-image-util
 Summary:    A Image Utility library in Tizen Native API
-Version:    0.2.10
+Version:    0.2.11
 Release:    0
 Group:      Multimedia/API
 License:    Apache-2.0
index f08a625..30fb4e6 100644 (file)
@@ -846,7 +846,7 @@ static gboolean __set_input_crop_area(const char *data, test_size_s *size)
 
        params = g_strsplit(data, ",", 0);
 
-       if (params == NULL || params[0] == NULL || params[1] == NULL || params[2] == NULL || params[3] == NULL)
+       if (!params)
                return FALSE;
 
        if (!__safe_atoui(params[0], &size->x)) {
@@ -885,7 +885,7 @@ static gboolean __set_input_size(const char *data, test_size_s *size)
 
        params = g_strsplit(data, "x", 0);
 
-       if (params == NULL || params[0] == NULL || params[1] == NULL)
+       if (!params)
                return FALSE;
 
        if (!__safe_atoui(params[0], &size->w)) {
@@ -916,7 +916,7 @@ static gboolean __set_input_color(const char *data, test_color_s *color)
 
        params = g_strsplit(data, ",", 0);
 
-       if (params == NULL || params[0] == NULL || params[1] == NULL || params[2] == NULL || params[3] == NULL)
+       if (!params)
                return FALSE;
 
        if (!__safe_atoui(params[0], &color_level) || color_level > 255) {