summaryrefslogtreecommitdiff
path: root/gtk/gtktextiter.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2023-03-03 07:10:51 -0500
committerMatthias Clasen <mclasen@redhat.com>2023-03-14 14:56:42 -0400
commita36123c802ba27e4e1fcb94c4b8cc9515bcf21ec (patch)
tree80f8a3bf5a3c37d92f9609bb0e512b8cd6b4a24e /gtk/gtktextiter.c
parent9f88dba1622a02b44f49fc0079b7810e588347d3 (diff)
downloadgtk+-a36123c802ba27e4e1fcb94c4b8cc9515bcf21ec.tar.gz
gtk: Stop using g_slice
Diffstat (limited to 'gtk/gtktextiter.c')
-rw-r--r--gtk/gtktextiter.c4
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);
}
/**