fixed coverity issues 82/244182/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.103709 accepted/tizen/6.0/unified/20211029.080435 accepted/tizen/6.0/unified/hotfix/20201103.045959 accepted/tizen/unified/20200916.121645 submit/tizen/20200915.152903 submit/tizen_6.0/20201029.205504 submit/tizen_6.0/20211029.144301 submit/tizen_6.0_hotfix/20201102.192904 submit/tizen_6.0_hotfix/20201103.115104 tizen_6.0.m2_release
authoraman.jeph <aman.jeph@samsung.com>
Tue, 15 Sep 2020 14:17:06 +0000 (19:47 +0530)
committeraman.jeph <aman.jeph@samsung.com>
Tue, 15 Sep 2020 14:17:06 +0000 (19:47 +0530)
Change-Id: I889bf1593a653b48e4b8dd30a5d2e5e42acaaac8
Signed-off-by: aman.jeph <aman.jeph@samsung.com>
src/gallery-efl.c [changed mode: 0644->0755]
src/view/ge-albums.c [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index c8b1c2e..c2138c3
@@ -376,13 +376,13 @@ static int _ge_parse_param(ge_ugdata * ugd, app_control_h service)
        if (ret != APP_CONTROL_ERROR_NONE) {
                if (total_size) {
                        ugd->limitsize = atol(total_size);
-                       GE_FREE(total_size);
                } else {
                        ugd->limitsize = -1;
                }
        } else {
                ugd->limitsize = -1;
        }
+       GE_FREE(total_size);
 
        app_control_get_extra_data(service, APP_CONTROL_DATA_SELECTION_MODE,
                                                           &select_mode);
old mode 100644 (file)
new mode 100755 (executable)
index 9061ea5..6c5733f
@@ -524,17 +524,16 @@ __ge_gallery_ug_result_cb(app_control_h request, app_control_h reply,
                ug_send_result_full(ugd->ug, ugd->service,
                                APP_CONTROL_RESULT_SUCCEEDED);
 
-               if (pathArray) {
-                       for (i = 0; i < arrayLength; i++) {
-                               GE_FREEIF(pathArray[i]);
-                       }
-                       GE_FREE(pathArray);
-               }
-
                if (!ugd->is_attach_panel) {
                        ug_destroy_me(ugd->ug);
                }
        }
+       if (pathArray) {
+               for (i = 0; i < arrayLength; i++) {
+                       GE_FREEIF(pathArray[i]);
+               }
+               GE_FREE(pathArray);
+       }
 }
 
 /**