[gnome-photos/wip/rishi/organize-collection-model-dont-leak-job] organize-collection-model: Don't leak the PhotosFetchCollectionStateJob




commit dbf33823622f8f330046f1448911c32571ed4eb2
Author: Debarshi Ray <debarshir gnome org>
Date:   Sat Mar 27 17:08:43 2021 +0100

    organize-collection-model: Don't leak the PhotosFetchCollectionStateJob

 src/photos-organize-collection-model.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/photos-organize-collection-model.c b/src/photos-organize-collection-model.c
index ded0756d..033767da 100644
--- a/src/photos-organize-collection-model.c
+++ b/src/photos-organize-collection-model.c
@@ -134,7 +134,7 @@ photos_organize_collection_model_fetch_collection_state_executed (GHashTable *co
 static void
 photos_organize_collection_model_refresh_state (PhotosOrganizeCollectionModel *self)
 {
-  PhotosFetchCollectionStateJob *job;
+  g_autoptr (PhotosFetchCollectionStateJob) job = NULL;
 
   job = photos_fetch_collection_state_job_new ();
   photos_fetch_collection_state_job_run (job,


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