diff options
| author | Dana Jansens <danakj@orodu.net> | 2010-02-12 14:03:24 -0500 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2010-02-12 14:03:24 -0500 |
| commit | 890e13b919892887b773462bb866e849e0cb4d91 (patch) | |
| tree | 3abd5c781bb2cedddb061e34a8057fe146a49794 /obt/keyboard.c | |
| parent | 4f93731cdbecbf43b82aa000c07ec8b40f97dd03 (diff) | |
use g_slice_new() instead of g_new() part 3
Diffstat (limited to 'obt/keyboard.c')
| -rw-r--r-- | obt/keyboard.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); } } |
