[gnome-photos/wip/rishi/issues-77-create-collection-icon-delete-item-dropdown: 2/3] delete-item-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: 2/3] delete-item-job: Use g_auto*
- Date: Fri, 19 Oct 2018 06:21:34 +0000 (UTC)
commit 2c9c389532339378b7febec5a41f6c67592455a8
Author: Debarshi Ray <debarshir gnome org>
Date: Thu Oct 18 21:20:02 2018 +0200
delete-item-job: Use g_auto*
https://gitlab.gnome.org/GNOME/gnome-photos/issues/77
src/photos-delete-item-job.c | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
---
diff --git a/src/photos-delete-item-job.c b/src/photos-delete-item-job.c
index a0465299..0de09525 100644
--- a/src/photos-delete-item-job.c
+++ b/src/photos-delete-item-job.c
@@ -1,6 +1,6 @@
/*
* Photos - access, organize and share your photos on GNOME
- * Copyright © 2013 – 2017 Red Hat, Inc.
+ * Copyright © 2013 – 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
@@ -165,8 +165,8 @@ photos_delete_item_job_run (PhotosDeleteItemJob *self,
gpointer user_data)
{
GApplication *app;
- GTask *task;
- PhotosQuery *query = NULL;
+ g_autoptr (GTask) task = NULL;
+ g_autoptr (PhotosQuery) query = NULL;
PhotosSearchContextState *state;
task = g_task_new (self, cancellable, callback, user_data);
@@ -190,6 +190,5 @@ photos_delete_item_job_run (PhotosDeleteItemJob *self,
g_object_unref);
out:
- g_clear_object (&query);
- g_object_unref (task);
+ return;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]