From 890e13b919892887b773462bb866e849e0cb4d91 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Fri, 12 Feb 2010 14:03:24 -0500 Subject: use g_slice_new() instead of g_new() part 3 --- obt/keyboard.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'obt/keyboard.c') diff --git a/obt/keyboard.c b/obt/keyboard.c index f7a0f3bb..2d3a0553 100644 --- a/obt/keyboard.c +++ b/obt/keyboard.c @@ -402,7 +402,7 @@ ObtIC* obt_keyboard_context_new(Window client, Window focus) g_return_val_if_fail(client != None && focus != None, NULL); - ic = g_new(ObtIC, 1); + ic = g_slice_new(ObtIC); ic->ref = 1; ic->client = client; ic->focus = focus; @@ -424,6 +424,6 @@ void obt_keyboard_context_unref(ObtIC *ic) if (--ic->ref < 1) { xic_all = g_slist_remove(xic_all, ic); XDestroyIC(ic->xic); - g_free(ic); + g_slice_free(ObtIC, ic); } } -- cgit v1.2.3