[gnome-photos] organize-collection-view: Don't leak the ID



commit 1b716c3a5b02db3915e9ea3478e5aa69ff5dca58
Author: Debarshi Ray <debarshir gnome org>
Date:   Sat Oct 20 22:12:09 2018 +0200

    organize-collection-view: Don't leak the ID

 src/photos-organize-collection-view.c | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/src/photos-organize-collection-view.c b/src/photos-organize-collection-view.c
index 97fe8c0a..07a7d3b6 100644
--- a/src/photos-organize-collection-view.c
+++ b/src/photos-organize-collection-view.c
@@ -77,6 +77,8 @@ photos_organize_collection_view_check_cell (GtkTreeViewColumn *tree_column,
                 "inconsistent", (state & PHOTOS_COLLECTION_STATE_INCONSISTENT) != 0,
                 NULL);
   gtk_cell_renderer_set_visible (cell_renderer, g_strcmp0 (id, PHOTOS_COLLECTION_PLACEHOLDER_ID));
+
+  g_free (id);
 }
 
 


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