summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoraman.jeph <aman.jeph@samsung.com>2020-09-15 19:41:35 +0530
committeraman.jeph <aman.jeph@samsung.com>2020-09-16 11:13:04 +0530
commit21f4245188a7dd2e93e616b1e3646999b4d80a2f (patch)
tree1a8ba559c3e24bc1fcde0f536690744c7da1cd33
parent86e9c3f853ba911e98095cdfe24a079c64875b7c (diff)
downloadattach-panel-document-accepted/tizen_7.0_unified_hotfix.tar.gz
attach-panel-document-accepted/tizen_7.0_unified_hotfix.tar.bz2
attach-panel-document-accepted/tizen_7.0_unified_hotfix.zip
Change-Id: I64b2a22a7976529749c6332f7afc8fb84c9a4752 Signed-off-by: aman.jeph <aman.jeph@samsung.com>
-rwxr-xr-x[-rw-r--r--]src/attach-panel-document.c19
1 files changed, 15 insertions, 4 deletions
diff --git a/src/attach-panel-document.c b/src/attach-panel-document.c
index ca58baf..a11de1f 100644..100755
--- a/src/attach-panel-document.c
+++ b/src/attach-panel-document.c
@@ -242,7 +242,7 @@ static int _doc_parse_param_file(doc_ugdata * ugd, app_control_h service)
ugd->file_type_mode = DOC_FILE_T_VIDEO;
else
ugd->file_type_mode = DOC_FILE_T_ALL;
-
+ free(mime);
return 0;
}
@@ -263,8 +263,10 @@ static int _doc_parse_param_file(doc_ugdata * ugd, app_control_h service)
DOC_FREE(file_type);
return 0;
}
-
-
+ if(file_type) {
+ free(file_type);
+ file_type = NULL;
+ }
DOC_DEFAULT_FILE_TYPE:
doc_dbg("file type is default, set default type(ALL).");
@@ -297,6 +299,10 @@ static int _doc_parse_param(doc_ugdata * ugd, app_control_h service)
} else {
ugd->limitsize = -1;
}
+ if(total_size) {
+ free(total_size);
+ total_size = NULL;
+ }
#endif
app_control_get_extra_data(service, APP_CONTROL_DATA_SELECTION_MODE,
@@ -464,7 +470,10 @@ static void *_doc_create(ui_gadget_h ug, enum ug_mode mode,
} else if (ugd) {
ugd->is_attach_panel = false;
}
-
+ if(contact_id) {
+ free(contact_id);
+ contact_id = NULL;
+ }
if (ugd->overlap_mode)
ugd->b_hide_indicator = true;
else if (ugd->b_hide_indicator)
@@ -627,6 +636,8 @@ static void _doc_message(ui_gadget_h ug, app_control_h msg,
} else {
doc_dbg("invalid mode: %s", display_mode);
}
+ free(display_mode);
+ display_mode = NULL;
}
}
}