[nautilus] file-operations: mark_desktop_file_executable: use automatic cleanup
- From: Ernestas Kulik <ernestask src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] file-operations: mark_desktop_file_executable: use automatic cleanup
- Date: Mon, 15 May 2017 12:07:34 +0000 (UTC)
commit 0d207faa308b07425c72391dd0722e2bebd1df5d
Author: Ernestas Kulik <ernestask gnome org>
Date: Mon May 15 11:21:52 2017 +0300
file-operations: mark_desktop_file_executable: use automatic cleanup
https://bugzilla.gnome.org/show_bug.cgi?id=782650
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 d665e61..8d9e0c4 100644
--- a/src/nautilus-file-operations.c
+++ b/src/nautilus-file-operations.c
@@ -8110,7 +8110,7 @@ nautilus_file_mark_desktop_file_executable (GFile *file,
NautilusOpCallback done_callback,
gpointer done_callback_data)
{
- GTask *task;
+ g_autoptr (GTask) task = NULL;
MarkTrustedJob *job;
job = op_job_new (MarkTrustedJob, parent_window);
@@ -8122,7 +8122,6 @@ nautilus_file_mark_desktop_file_executable (GFile *file,
task = g_task_new (NULL, NULL, mark_desktop_file_executable_task_done, job);
g_task_set_task_data (task, job, NULL);
g_task_run_in_thread (task, mark_desktop_file_executable_task_thread_func);
- g_object_unref (task);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]