From be9d0fa25d219ccc0c74f0f4be097ff21097c9a9 Mon Sep 17 00:00:00 2001
From: Li Yuan
Date: Fri, 11 Jan 2008 09:22:25 +0000
Subject: [PATCH] Bug #508715. Should use gtk_tree_path_free to free a
GtkTreePath.
2008-01-11 Li Yuan
* gailtreeview.c: (gail_tree_view_get_n_rows):
Bug #508715. Should use gtk_tree_path_free to free a GtkTreePath.
svn path=/trunk/; revision=19349
---
modules/other/gail/ChangeLog | 5 +++++
modules/other/gail/gailtreeview.c | 2 +-
2 files changed, 6 insertions(+), 1 deletion(-)
create mode 100644 modules/other/gail/ChangeLog
diff --git a/modules/other/gail/ChangeLog b/modules/other/gail/ChangeLog
new file mode 100644
index 000000000..921721003
--- /dev/null
+++ b/modules/other/gail/ChangeLog
@@ -0,0 +1,5 @@
+2008-01-11 Li Yuan
+
+ * gailtreeview.c: (gail_tree_view_get_n_rows):
+ Bug #508715. Should use gtk_tree_path_free to free a GtkTreePath.
+
diff --git a/modules/other/gail/gailtreeview.c b/modules/other/gail/gailtreeview.c
index e2814127d..cee016cba 100644
--- a/modules/other/gail/gailtreeview.c
+++ b/modules/other/gail/gailtreeview.c
@@ -1256,7 +1256,7 @@ gail_tree_view_get_n_rows (AtkTable *table)
root_tree = gtk_tree_path_new_root ();
iterate_thru_children (tree_view, tree_model,
root_tree, NULL, &n_rows, 0);
- g_free (root_tree);
+ gtk_tree_path_free (root_tree);
}
return n_rows;