[gnome-photos] item-model: Free the path in the item_added method



commit 6621413e19baebc16a7e5c2618f27e1c0f9e708f
Author: Debarshi Ray <debarshir gnome org>
Date:   Sun Jul 15 22:13:44 2012 +0200

    item-model: Free the path in the item_added method

 src/photos-item-model.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/photos-item-model.c b/src/photos-item-model.c
index 0406c9a..be84dd3 100644
--- a/src/photos-item-model.c
+++ b/src/photos-item-model.c
@@ -127,6 +127,8 @@ photos_item_model_item_added (PhotosItemModel *self, PhotosBaseItem *item)
 
   path = gtk_tree_model_get_path (GTK_TREE_MODEL (self), &iter);
   row_ref = gtk_tree_row_reference_new (GTK_TREE_MODEL (self), path);
+  gtk_tree_path_free (path);
+
   g_object_set_data_full (G_OBJECT (item), "row-ref", row_ref, (GDestroyNotify) gtk_tree_row_reference_free);
   g_signal_connect (item, "info-updated", G_CALLBACK (photos_item_model_info_updated), self);
 }



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