diff options
Diffstat (limited to 'gtk/gtktextiter.c')
-rw-r--r-- | gtk/gtktextiter.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gtktextiter.c b/gtk/gtktextiter.c index 9ffbf581a3..d3b18752c4 100644 --- a/gtk/gtktextiter.c +++ b/gtk/gtktextiter.c @@ -425,7 +425,7 @@ gtk_text_iter_copy (const GtkTextIter *iter) g_return_val_if_fail (iter != NULL, NULL); - new_iter = g_slice_new (GtkTextIter); + new_iter = g_new (GtkTextIter, 1); *new_iter = *iter; @@ -447,7 +447,7 @@ gtk_text_iter_free (GtkTextIter *iter) { g_return_if_fail (iter != NULL); - g_slice_free (GtkTextIter, iter); + g_free (iter); } /** |