[maemo-commits] [maemo-commits] r17292 - in projects/haf/trunk/gtk+: . gtk/tests

From: subversion at stage.maemo.org subversion at stage.maemo.org
Date: Tue Jan 27 15:46:14 EET 2009
Author: kris
Date: 2009-01-27 15:46:12 +0200 (Tue, 27 Jan 2009)
New Revision: 17292

Modified:
   projects/haf/trunk/gtk+/ChangeLog
   projects/haf/trunk/gtk+/gtk/tests/treeview-hildon.c
Log:
2009-01-27  Kristian Rietveld  <kris at imendio.com>

	* gtk/tests/treeview-hildon.c: plug memleaks.



Modified: projects/haf/trunk/gtk+/ChangeLog
===================================================================
--- projects/haf/trunk/gtk+/ChangeLog	2009-01-27 13:39:21 UTC (rev 17291)
+++ projects/haf/trunk/gtk+/ChangeLog	2009-01-27 13:46:12 UTC (rev 17292)
@@ -1,5 +1,9 @@
 2009-01-27  Kristian Rietveld  <kris at imendio.com>
 
+	* gtk/tests/treeview-hildon.c: plug memleaks.
+
+2009-01-27  Kristian Rietveld  <kris at imendio.com>
+
 	Fixes: NB#99342 - behaviour change for multiple selection mode
 	Part 2 / 2 (GtkIconView)
 

Modified: projects/haf/trunk/gtk+/gtk/tests/treeview-hildon.c
===================================================================
--- projects/haf/trunk/gtk+/gtk/tests/treeview-hildon.c	2009-01-27 13:39:21 UTC (rev 17291)
+++ projects/haf/trunk/gtk+/gtk/tests/treeview-hildon.c	2009-01-27 13:46:12 UTC (rev 17292)
@@ -186,12 +186,14 @@
   gtk_tree_selection_select_path (fixture->selection, path);
   g_assert (gtk_tree_selection_count_selected_rows (fixture->selection) == 1);
   g_assert (gtk_tree_selection_path_is_selected (fixture->selection, path));
+  gtk_tree_path_free (path);
 
   /* Selection should be extended */
   path = gtk_tree_path_new_from_indices (20, -1);
   gtk_tree_selection_select_path (fixture->selection, path);
   g_assert (gtk_tree_selection_count_selected_rows (fixture->selection) == 2);
   g_assert (gtk_tree_selection_path_is_selected (fixture->selection, path));
+  gtk_tree_path_free (path);
 }
 
 static void
@@ -218,11 +220,13 @@
   gtk_tree_selection_select_path (fixture->selection, path);
   g_assert (gtk_tree_selection_count_selected_rows (fixture->selection) == 1);
   g_assert (gtk_tree_selection_path_is_selected (fixture->selection, path));
+  gtk_tree_path_free (path);
 
   path = gtk_tree_path_new_from_indices (20, -1);
   gtk_tree_selection_select_path (fixture->selection, path);
   g_assert (gtk_tree_selection_count_selected_rows (fixture->selection) == 2);
   g_assert (gtk_tree_selection_path_is_selected (fixture->selection, path));
+  gtk_tree_path_free (path);
 
   /* Switch selection mode, one item should stay selected */
   gtk_tree_selection_set_mode (fixture->selection, GTK_SELECTION_SINGLE);


More information about the maemo-commits mailing list