[gnome-photos] view-container: Plug a memory leak



commit e82da45bd08c1f27632f1341ce3a690f6c6916ba
Author: Debarshi Ray <debarshir gnome org>
Date:   Thu Jul 24 13:24:28 2014 +0200

    view-container: Plug a memory leak

 src/photos-view-container.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/photos-view-container.c b/src/photos-view-container.c
index 33f75d1..ee5232a 100644
--- a/src/photos-view-container.c
+++ b/src/photos-view-container.c
@@ -255,6 +255,7 @@ photos_view_container_view_selection_changed (GdMainView *main_view, gpointer us
   selected_urns = photos_utils_get_urns_from_paths (selection, GTK_TREE_MODEL (priv->model));
   photos_selection_controller_set_selection (priv->sel_cntrlr, selected_urns);
 
+  g_list_free_full (selected_urns, g_free);
   g_list_free_full (selection, (GDestroyNotify) gtk_tree_path_free);
 }
 


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