[gnome-photos] Do not leak the GtkTreePaths
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos] Do not leak the GtkTreePaths
- Date: Wed, 21 Jan 2015 10:39:35 +0000 (UTC)
commit 9cd33593ede72c1dcc19575a4c59861a1b9be511
Author: Debarshi Ray <debarshir gnome org>
Date: Wed Jan 21 11:12:35 2015 +0100
Do not leak the GtkTreePaths
src/photos-organize-collection-model.c | 1 +
src/photos-organize-collection-view.c | 2 ++
src/photos-view-model.c | 1 +
3 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/photos-organize-collection-model.c b/src/photos-organize-collection-model.c
index 1cfeb04..bf24b2e 100644
--- a/src/photos-organize-collection-model.c
+++ b/src/photos-organize-collection-model.c
@@ -312,6 +312,7 @@ photos_organize_collection_model_remove_placeholder (PhotosOrganizeCollectionMod
if (gtk_tree_model_get_iter (GTK_TREE_MODEL (self), &placeholder_iter, placeholder_path))
gtk_list_store_remove (GTK_LIST_STORE (self), &placeholder_iter);
+ gtk_tree_path_free (placeholder_path);
gtk_tree_row_reference_free (priv->placeholder_ref);
priv->placeholder_ref = NULL;
}
diff --git a/src/photos-organize-collection-view.c b/src/photos-organize-collection-view.c
index afc12b9..924b23c 100644
--- a/src/photos-organize-collection-view.c
+++ b/src/photos-organize-collection-view.c
@@ -261,6 +261,8 @@ photos_organize_collection_view_text_editing_canceled (PhotosOrganizeCollectionV
path,
text);
}
+
+ gtk_tree_path_free (path);
}
else
photos_organize_collection_model_remove_placeholder (PHOTOS_ORGANIZE_COLLECTION_MODEL (priv->model));
diff --git a/src/photos-view-model.c b/src/photos-view-model.c
index a51f769..0c66811 100644
--- a/src/photos-view-model.c
+++ b/src/photos-view-model.c
@@ -284,6 +284,7 @@ photos_view_model_info_updated (PhotosBaseItem *item, gpointer user_data)
gtk_tree_model_get_iter (GTK_TREE_MODEL (self), &iter, path);
photos_view_model_info_set (self, item, &iter);
+ gtk_tree_path_free (path);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]