diff options
author | Ernestas Kulik <ernestask@gnome.org> | 2017-05-15 11:22:45 +0300 |
---|---|---|
committer | Ernestas Kulik <ernestask@gnome.org> | 2017-05-15 15:06:24 +0300 |
commit | f673ae8ab26b7320c9887403ccf21bf79a5ac8a6 (patch) | |
tree | ad8b78488799a0c77e04ba712ece14eb0c96e8f0 | |
parent | 0d207faa308b07425c72391dd0722e2bebd1df5d (diff) | |
download | nautilus-f673ae8ab26b7320c9887403ccf21bf79a5ac8a6.tar.gz |
file-operations: empty_trash: use automatic cleanup
https://bugzilla.gnome.org/show_bug.cgi?id=782650
-rw-r--r-- | src/nautilus-file-operations.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/nautilus-file-operations.c b/src/nautilus-file-operations.c index 8d9e0c4f5..baee8564c 100644 --- a/src/nautilus-file-operations.c +++ b/src/nautilus-file-operations.c @@ -7938,7 +7938,7 @@ empty_trash_thread_func (GTask *task, void nautilus_file_operations_empty_trash (GtkWidget *parent_view) { - GTask *task; + g_autoptr (GTask) task = NULL; EmptyTrashJob *job; GtkWindow *parent_window; @@ -7958,7 +7958,6 @@ nautilus_file_operations_empty_trash (GtkWidget *parent_view) task = g_task_new (NULL, NULL, empty_trash_task_done, job); g_task_set_task_data (task, job, NULL); g_task_run_in_thread (task, empty_trash_thread_func); - g_object_unref (task); } static void |