[gnome-photos/wip/rishi/issues-77-create-collection-icon-delete-item-dropdown: 1/3] create-collection-icon-job: Use g_auto*
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos/wip/rishi/issues-77-create-collection-icon-delete-item-dropdown: 1/3] create-collection-icon-job: Use g_auto*
- Date: Fri, 19 Oct 2018 06:21:29 +0000 (UTC)
commit 932afda79f32f418392e1ee22e9adff9e3bd6198
Author: Debarshi Ray <debarshir gnome org>
Date: Thu Oct 18 21:16:21 2018 +0200
create-collection-icon-job: Use g_auto*
https://gitlab.gnome.org/GNOME/gnome-photos/issues/77
src/photos-create-collection-icon-job.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/src/photos-create-collection-icon-job.c b/src/photos-create-collection-icon-job.c
index 672cfc9f..164b5ef2 100644
--- a/src/photos-create-collection-icon-job.c
+++ b/src/photos-create-collection-icon-job.c
@@ -1,6 +1,6 @@
/*
* Photos - access, organize and share your photos on GNOME
- * Copyright © 2014 – 2017 Red Hat, Inc.
+ * Copyright © 2014 – 2018 Red Hat, Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -147,7 +147,7 @@ photos_create_collection_icon_job_run (PhotosCreateCollectionIconJob *self,
GAsyncReadyCallback callback,
gpointer user_data)
{
- GTask *task;
+ g_autoptr (GTask) task = NULL;
task = g_task_new (self, cancellable, callback, user_data);
g_task_set_source_tag (task, photos_create_collection_icon_job_run);
@@ -160,6 +160,4 @@ photos_create_collection_icon_job_run (PhotosCreateCollectionIconJob *self,
/* TODO: build collection icon query */
g_task_return_new_error (task, PHOTOS_ERROR, 0, "Unable to create collection icon");
-
- g_object_unref (task);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]