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.
This commit is contained in:
Matthias Clasen 2005-12-27 00:49:24 +00:00 committed by Matthias Clasen
parent 443f3aa6ed
commit bf16be253f
3 changed files with 8 additions and 2 deletions

View File

@ -1,5 +1,8 @@
2005-12-26 Matthias Clasen <mclasen@redhat.com>
* gtk/gtktextbtree.c: Use the slice allocator for some other small
auxiliary structures as well.
* gtk/gtkimcontext.c (gtk_im_context_filter_keypress): Clarify
docs. (#324996)

View File

@ -1,5 +1,8 @@
2005-12-26 Matthias Clasen <mclasen@redhat.com>
* gtk/gtktextbtree.c: Use the slice allocator for some other small
auxiliary structures as well.
* gtk/gtkimcontext.c (gtk_im_context_filter_keypress): Clarify
docs. (#324996)

View File

@ -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