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/gtkrbtree.c | |
parent | 9f88dba1622a02b44f49fc0079b7810e588347d3 (diff) | |
download | gtk+-a36123c802ba27e4e1fcb94c4b8cc9515bcf21ec.tar.gz |
gtk: Stop using g_slice
Diffstat (limited to 'gtk/gtkrbtree.c')
-rw-r--r-- | gtk/gtkrbtree.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gtk/gtkrbtree.c b/gtk/gtkrbtree.c index 4ccff54084..befe1cdbc9 100644 --- a/gtk/gtkrbtree.c +++ b/gtk/gtkrbtree.c @@ -117,7 +117,7 @@ gtk_rb_node_new (GtkRbTree *tree) { GtkRbNode *result; - result = g_slice_alloc0 (gtk_rb_node_get_size (tree)); + result = g_malloc0 (gtk_rb_node_get_size (tree)); result->red = TRUE; result->dirty = TRUE; @@ -134,7 +134,7 @@ gtk_rb_node_free (GtkRbTree *tree, if (tree->clear_augment_func) tree->clear_augment_func (NODE_TO_AUG_POINTER (tree, node)); - g_slice_free1 (gtk_rb_node_get_size (tree), node); + g_free (node); } static void @@ -511,7 +511,7 @@ gtk_rb_tree_new_for_size (gsize element_size, { GtkRbTree *tree; - tree = g_slice_new0 (GtkRbTree); + tree = g_new0 (GtkRbTree, 1); tree->ref_count = 1; tree->element_size = element_size; @@ -540,8 +540,8 @@ gtk_rb_tree_unref (GtkRbTree *tree) if (tree->root) gtk_rb_node_free_deep (tree, tree->root); - - g_slice_free (GtkRbTree, tree); + + g_free (tree); } gpointer |