Bug #508715. Should use gtk_tree_path_free to free a GtkTreePath.

2008-01-11  Li Yuan  <li.yuan@sun.com>

        * 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
This commit is contained in:
Li Yuan 2008-01-11 09:22:25 +00:00 committed by Li Yuan
parent a39f6c4611
commit be9d0fa25d
2 changed files with 6 additions and 1 deletions

View File

@ -0,0 +1,5 @@
2008-01-11 Li Yuan <li.yuan@sun.com>
* gailtreeview.c: (gail_tree_view_get_n_rows):
Bug #508715. Should use gtk_tree_path_free to free a GtkTreePath.

View File

@ -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;