forked from AuroraMiddleware/gtk
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:
parent
eed3357e6c
commit
83344dae85
@ -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
|
||||
|
@ -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
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user