diff options
author | Matthias Clasen <mclasen@redhat.com> | 2006-01-04 07:06:12 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2006-01-04 07:06:12 +0000 |
commit | 04eceaf621aec4388bc37e10b63a49da4d2a6942 (patch) | |
tree | bddf2cd7704e2174c2cfba8bb1d65036b2a72801 /gtk/gtkkeyhash.c | |
parent | f827de4ec41b5f5bba304f2a062b8d67690542d6 (diff) | |
download | gtk+-04eceaf621aec4388bc37e10b63a49da4d2a6942.tar.gz |
Use the slice allocator for many small allocations.
2006-01-04 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkaccelmap.c:
* gtk/gtkactiongroup.c:
* gtk/gtkdialog.c:
* gtk/gtkfilesystemunix.c:
* gtk/gtkgc.c:
* gtk/gtkkeyhash.c:
* gtk/gtkplug.c:
* gtk/gtktextiter.c:
* gtk/gtktextlayout.c:
* gtk/gtkuimanager.c:
* gtk/gtkwidget.c:
* gtk/gtkwindow.c:
* gtk/gtkxembed.c: Use the slice allocator for many small
allocations.
* gtk/gtkcolorsel.c:
* gtk/gtktreeview.c: Use IPN.
* gtk/gtkwidget.c: Remove an unused field from the AccelPath
struct.
Diffstat (limited to 'gtk/gtkkeyhash.c')
-rw-r--r-- | gtk/gtkkeyhash.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gtkkeyhash.c b/gtk/gtkkeyhash.c index 12648e050d..7265daa3c8 100644 --- a/gtk/gtkkeyhash.c +++ b/gtk/gtkkeyhash.c @@ -147,7 +147,7 @@ key_hash_free_entry (GtkKeyHash *key_hash, (*key_hash->destroy_notify) (entry->value); g_free (entry->keys); - g_free (entry); + g_slice_free (GtkKeyHashEntry, entry); } static void @@ -202,7 +202,7 @@ _gtk_key_hash_add_entry (GtkKeyHash *key_hash, GdkModifierType modifiers, gpointer value) { - GtkKeyHashEntry *entry = g_new (GtkKeyHashEntry, 1); + GtkKeyHashEntry *entry = g_slice_new (GtkKeyHashEntry); entry->value = value; entry->keyval = keyval; |