diff options
author | Christian Persch <chpe@gnome.org> | 2007-05-01 22:32:57 +0000 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2007-05-01 22:32:57 +0000 |
commit | 5f7249557ad7859955f791707e31c71bd1333161 (patch) | |
tree | b30946372488914002175e9c85d422140b50452b /gtk/gtktreemodel.c | |
parent | 77c55d66ef968d66d8610a6bd56c1c3f5d358252 (diff) | |
download | gtk+-5f7249557ad7859955f791707e31c71bd1333161.tar.gz |
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
Diffstat (limited to 'gtk/gtktreemodel.c')
-rw-r--r-- | gtk/gtktreemodel.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gtktreemodel.c b/gtk/gtktreemodel.c index 88022b805b..2f8294b621 100644 --- a/gtk/gtktreemodel.c +++ b/gtk/gtktreemodel.c @@ -864,7 +864,7 @@ gtk_tree_iter_copy (GtkTreeIter *iter) g_return_val_if_fail (iter != NULL, NULL); - retval = g_new (GtkTreeIter, 1); + retval = g_slice_new (GtkTreeIter); *retval = *iter; return retval; @@ -882,7 +882,7 @@ gtk_tree_iter_free (GtkTreeIter *iter) { g_return_if_fail (iter != NULL); - g_free (iter); + g_slice_free (GtkTreeIter, iter); } GType |