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:
parent
443f3aa6ed
commit
bf16be253f
@ -1,5 +1,8 @@
|
|||||||
2005-12-26 Matthias Clasen <mclasen@redhat.com>
|
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
|
* gtk/gtkimcontext.c (gtk_im_context_filter_keypress): Clarify
|
||||||
docs. (#324996)
|
docs. (#324996)
|
||||||
|
|
||||||
|
@ -1,5 +1,8 @@
|
|||||||
2005-12-26 Matthias Clasen <mclasen@redhat.com>
|
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
|
* gtk/gtkimcontext.c (gtk_im_context_filter_keypress): Clarify
|
||||||
docs. (#324996)
|
docs. (#324996)
|
||||||
|
|
||||||
|
@ -1660,7 +1660,7 @@ static IterStack*
|
|||||||
iter_stack_new (void)
|
iter_stack_new (void)
|
||||||
{
|
{
|
||||||
IterStack *stack;
|
IterStack *stack;
|
||||||
stack = g_new (IterStack, 1);
|
stack = g_slice_new (IterStack);
|
||||||
stack->iters = NULL;
|
stack->iters = NULL;
|
||||||
stack->count = 0;
|
stack->count = 0;
|
||||||
stack->alloced = 0;
|
stack->alloced = 0;
|
||||||
@ -1697,7 +1697,7 @@ static void
|
|||||||
iter_stack_free (IterStack *stack)
|
iter_stack_free (IterStack *stack)
|
||||||
{
|
{
|
||||||
g_free (stack->iters);
|
g_free (stack->iters);
|
||||||
g_free (stack);
|
g_slice_free (IterStack, stack);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
Loading…
Reference in New Issue
Block a user