[nautilus] file-operations: move: use automatic cleanup
- From: Ernestas Kulik <ernestask src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] file-operations: move: use automatic cleanup
- Date: Mon, 15 May 2017 12:07:19 +0000 (UTC)
commit 48fd326ee854429873196721b0696bccebe86e16
Author: Ernestas Kulik <ernestask gnome org>
Date: Mon May 15 11:17:37 2017 +0300
file-operations: move: use automatic cleanup
https://bugzilla.gnome.org/show_bug.cgi?id=782650
src/nautilus-file-operations.c | 10 ++--------
1 files changed, 2 insertions(+), 8 deletions(-)
---
diff --git a/src/nautilus-file-operations.c b/src/nautilus-file-operations.c
index 2aa42df..1257339 100644
--- a/src/nautilus-file-operations.c
+++ b/src/nautilus-file-operations.c
@@ -6455,16 +6455,13 @@ move_task_thread_func (GTask *task,
GList *fallbacks;
SourceInfo source_info;
TransferInfo transfer_info;
- char *dest_fs_id;
- char *dest_fs_type;
+ g_autofree char *dest_fs_id = NULL;
+ g_autofree char *dest_fs_type = NULL;
GList *fallback_files;
job = task_data;
common = &job->common;
- dest_fs_id = NULL;
- dest_fs_type = NULL;
-
fallbacks = NULL;
nautilus_progress_info_start (job->common.progress);
@@ -6518,9 +6515,6 @@ move_task_thread_func (GTask *task,
aborted:
g_list_free_full (fallbacks, g_free);
-
- g_free (dest_fs_id);
- g_free (dest_fs_type);
}
void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]