Use GSlice for gtk_tree_iter_copy. Bug #434863.

2007-05-02  Christian Persch  <chpe@gnome.org>

	* gtk/gtktreemodel.c: (gtk_tree_iter_copy), (gtk_tree_iter_free): Use
	GSlice for gtk_tree_iter_copy. Bug #434863.

svn path=/trunk/; revision=17761
This commit is contained in:
Christian Persch 2007-05-01 22:32:57 +00:00 committed by Christian Persch
parent 77c55d66ef
commit 5f7249557a
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2007-05-02 Christian Persch <chpe@gnome.org>
* gtk/gtktreemodel.c: (gtk_tree_iter_copy), (gtk_tree_iter_free): Use
GSlice for gtk_tree_iter_copy. Bug #434863.
2007-05-02 Christian Persch <chpe@gnome.org> 2007-05-02 Christian Persch <chpe@gnome.org>
* gtk/gtkpapersize.c: (gtk_paper_size_get_paper_sizes): Put only * gtk/gtkpapersize.c: (gtk_paper_size_get_paper_sizes): Put only

View File

@ -864,7 +864,7 @@ gtk_tree_iter_copy (GtkTreeIter *iter)
g_return_val_if_fail (iter != NULL, NULL); g_return_val_if_fail (iter != NULL, NULL);
retval = g_new (GtkTreeIter, 1); retval = g_slice_new (GtkTreeIter);
*retval = *iter; *retval = *iter;
return retval; return retval;
@ -882,7 +882,7 @@ gtk_tree_iter_free (GtkTreeIter *iter)
{ {
g_return_if_fail (iter != NULL); g_return_if_fail (iter != NULL);
g_free (iter); g_slice_free (GtkTreeIter, iter);
} }
GType GType