[gnome-photos/wip/rishi/properties-dialog-use-g-auto] properties-dialog: Use g_auto*
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos/wip/rishi/properties-dialog-use-g-auto] properties-dialog: Use g_auto*
- Date: Tue, 30 Mar 2021 23:30:45 +0000 (UTC)
commit 87e67525b36df546907999575338dba1176b77cf
Author: Debarshi Ray <debarshir gnome org>
Date: Wed Mar 31 01:28:22 2021 +0200
properties-dialog: Use g_auto*
https://gitlab.gnome.org/GNOME/gnome-photos/issues/77
src/photos-properties-dialog.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/photos-properties-dialog.c b/src/photos-properties-dialog.c
index d116b47e..ef9a2784 100644
--- a/src/photos-properties-dialog.c
+++ b/src/photos-properties-dialog.c
@@ -213,7 +213,7 @@ photos_properties_dialog_location_query_executed (GObject *source_object, GAsync
{
PhotosPropertiesDialog *self = PHOTOS_PROPERTIES_DIALOG (user_data);
TrackerSparqlConnection *connection = TRACKER_SPARQL_CONNECTION (source_object);
- TrackerSparqlCursor *cursor = NULL; /* TODO: use g_autoptr */
+ g_autoptr (TrackerSparqlCursor) cursor = NULL;
{
g_autoptr (GError) error = NULL;
@@ -232,7 +232,7 @@ photos_properties_dialog_location_query_executed (GObject *source_object, GAsync
self);
out:
- g_clear_object (&cursor);
+ return;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]