summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
}
}
}