Change-Id: I889bf1593a653b48e4b8dd30a5d2e5e42acaaac8
Signed-off-by: aman.jeph <aman.jeph@samsung.com>
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);
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);
+ }
}
/**