diff options
author | Matthias Clasen <mclasen@redhat.com> | 2023-03-03 07:10:51 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2023-03-14 14:56:42 -0400 |
commit | a36123c802ba27e4e1fcb94c4b8cc9515bcf21ec (patch) | |
tree | 80f8a3bf5a3c37d92f9609bb0e512b8cd6b4a24e /gtk/gtktextattributes.c | |
parent | 9f88dba1622a02b44f49fc0079b7810e588347d3 (diff) | |
download | gtk+-a36123c802ba27e4e1fcb94c4b8cc9515bcf21ec.tar.gz |
gtk: Stop using g_slice
Diffstat (limited to 'gtk/gtktextattributes.c')
-rw-r--r-- | gtk/gtktextattributes.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gtktextattributes.c b/gtk/gtktextattributes.c index d8cef2518e..015bdd11c5 100644 --- a/gtk/gtktextattributes.c +++ b/gtk/gtktextattributes.c @@ -66,7 +66,7 @@ gtk_text_attributes_new (void) { GtkTextAttributes *values; - values = g_slice_new0 (GtkTextAttributes); + values = g_new0 (GtkTextAttributes, 1); /* 0 is a valid value for most of the struct */ values->refcount = 1; @@ -244,7 +244,7 @@ gtk_text_attributes_unref (GtkTextAttributes *values) if (values->font_features) g_free (values->font_features); - g_slice_free (GtkTextAttributes, values); + g_free (values); } } |