diff options
author | Matthias Clasen <mclasen@redhat.com> | 2005-12-27 00:49:24 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2005-12-27 00:49:24 +0000 |
commit | bf16be253fe561dc44610a154a24f47324d7ca9c (patch) | |
tree | 226cb116b62709bb4c8d570dd5e8739af91c560c /gtk/gtktextbtree.c | |
parent | 443f3aa6edcef67dffb3da839e9f2f6f1ac130d1 (diff) | |
download | gtk+-bf16be253fe561dc44610a154a24f47324d7ca9c.tar.gz |
Use the slice allocator for some other small auxiliary structures as well.
2005-12-26 Matthias Clasen <mclasen@redhat.com>
* gtk/gtktextbtree.c: Use the slice allocator for some other small
auxiliary structures as well.
Diffstat (limited to 'gtk/gtktextbtree.c')
-rw-r--r-- | gtk/gtktextbtree.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gtktextbtree.c b/gtk/gtktextbtree.c index 64a4e34b2d..d69357a69e 100644 --- a/gtk/gtktextbtree.c +++ b/gtk/gtktextbtree.c @@ -1660,7 +1660,7 @@ static IterStack* iter_stack_new (void) { IterStack *stack; - stack = g_new (IterStack, 1); + stack = g_slice_new (IterStack); stack->iters = NULL; stack->count = 0; stack->alloced = 0; @@ -1697,7 +1697,7 @@ static void iter_stack_free (IterStack *stack) { g_free (stack->iters); - g_free (stack); + g_slice_free (IterStack, stack); } static void |