[gnome-photos] update-mime-job: Use g_auto*
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos] update-mime-job: Use g_auto*
- Date: Thu, 7 Dec 2017 10:35:03 +0000 (UTC)
commit 101dc8ce85f834b817a87b3bae6b983c744af3f7
Author: Umang Jain <mailumangjain gmail com>
Date: Sun Dec 3 13:30:21 2017 +0530
update-mime-job: Use g_auto*
https://bugzilla.gnome.org/show_bug.cgi?id=788174
src/photos-update-mtime-job.c | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/src/photos-update-mtime-job.c b/src/photos-update-mtime-job.c
index 799e5d3..6ea4575 100644
--- a/src/photos-update-mtime-job.c
+++ b/src/photos-update-mtime-job.c
@@ -167,8 +167,8 @@ photos_update_mtime_job_run (PhotosUpdateMtimeJob *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);
@@ -192,6 +192,5 @@ photos_update_mtime_job_run (PhotosUpdateMtimeJob *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]