fix missing hash table initialization.

Tue Dec  6 11:37:59 2005  Tim Janik  <timj@gtk.org>

        * gdk/gdkevents.c (gdk_event_new): fix missing hash table
        initialization.
This commit is contained in:
Tim Janik 2005-12-06 10:40:09 +00:00 committed by Tim Janik
parent eed3357e6c
commit 83344dae85
3 changed files with 14 additions and 1 deletions

View File

@ -1,3 +1,8 @@
Tue Dec 6 11:37:59 2005 Tim Janik <timj@gtk.org>
* gdk/gdkevents.c (gdk_event_new): fix missing hash table
initialization.
Tue Dec 6 10:32:17 2005 Tim Janik <timj@gtk.org>
* gtk/gtkstatusbar.c: ported memchunk uses to g_slice, so the code

View File

@ -1,3 +1,8 @@
Tue Dec 6 11:37:59 2005 Tim Janik <timj@gtk.org>
* gdk/gdkevents.c (gdk_event_new): fix missing hash table
initialization.
Tue Dec 6 10:32:17 2005 Tim Janik <timj@gtk.org>
* gtk/gtkstatusbar.c: ported memchunk uses to g_slice, so the code

View File

@ -274,6 +274,9 @@ gdk_event_new (GdkEventType type)
GdkEventPrivate *new_private;
GdkEvent *new_event;
if (!event_hash)
event_hash = g_hash_table_new (g_direct_hash, NULL);
new_private = g_slice_new0 (GdkEventPrivate);
new_private->flags = 0;
@ -485,7 +488,7 @@ gdk_event_free (GdkEvent *event)
}
g_hash_table_remove (event_hash, event);
g_slice_free (GdkEventPrivate, event);
g_slice_free (GdkEventPrivate, (GdkEventPrivate*) event);
}
/**