[gnome-photos/wip/rishi/camera-cache-g-auto] camera-cache: Use g_auto*
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos/wip/rishi/camera-cache-g-auto] camera-cache: Use g_auto*
- Date: Tue, 30 Mar 2021 22:53:49 +0000 (UTC)
commit e0597a3ddccc62991089af6354dfd15e3569cde7
Author: Debarshi Ray <debarshir gnome org>
Date: Wed Mar 31 00:53:30 2021 +0200
camera-cache: Use g_auto*
https://gitlab.gnome.org/GNOME/gnome-photos/issues/77
src/photos-camera-cache.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/photos-camera-cache.c b/src/photos-camera-cache.c
index 811cc3ac..244cd5af 100644
--- a/src/photos-camera-cache.c
+++ b/src/photos-camera-cache.c
@@ -105,7 +105,7 @@ photos_camera_cache_equipment_query_executed (GObject *source_object, GAsyncResu
{
GTask *task = G_TASK (user_data);
TrackerSparqlConnection *connection = TRACKER_SPARQL_CONNECTION (source_object);
- TrackerSparqlCursor *cursor = NULL; /* TODO: use g_autoptr */
+ g_autoptr (TrackerSparqlCursor) cursor = NULL;
GError *error;
error = NULL;
@@ -119,7 +119,7 @@ photos_camera_cache_equipment_query_executed (GObject *source_object, GAsyncResu
tracker_sparql_cursor_next_async (cursor, NULL, photos_camera_cache_cursor_next, g_object_ref (task));
out:
- g_clear_object (&cursor);
+ return;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]