[gnome-photos/wip/rishi/application-use-g-auto: 1/2] application: Don't leak the TrackerSparqlCursor




commit 47228528591a43b3909adca2e3f5e5b974d34947
Author: Debarshi Ray <debarshir gnome org>
Date:   Wed Mar 31 01:18:09 2021 +0200

    application: Don't leak the TrackerSparqlCursor
    
    https://gitlab.gnome.org/GNOME/gnome-photos/-/merge_requests/207

 src/photos-application.c | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/src/photos-application.c b/src/photos-application.c
index ec5f0629..d46c574e 100644
--- a/src/photos-application.c
+++ b/src/photos-application.c
@@ -1129,6 +1129,7 @@ photos_application_import_single_item (GObject *source_object, GAsyncResult *res
   photos_application_import_copy_next_file (self, g_steal_pointer (&data));
 
  out:
+  g_clear_object (&cursor);
   g_application_unmark_busy (G_APPLICATION (self));
 }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]