Commit 83344dae authored by Tim Janik's avatar Tim Janik Committed by Tim Janik
Browse files

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.
parent eed3357e
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> Tue Dec 6 10:32:17 2005 Tim Janik <timj@gtk.org>
* gtk/gtkstatusbar.c: ported memchunk uses to g_slice, so the code * gtk/gtkstatusbar.c: ported memchunk uses to g_slice, so the code
......
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> Tue Dec 6 10:32:17 2005 Tim Janik <timj@gtk.org>
* gtk/gtkstatusbar.c: ported memchunk uses to g_slice, so the code * gtk/gtkstatusbar.c: ported memchunk uses to g_slice, so the code
......
...@@ -274,6 +274,9 @@ gdk_event_new (GdkEventType type) ...@@ -274,6 +274,9 @@ gdk_event_new (GdkEventType type)
GdkEventPrivate *new_private; GdkEventPrivate *new_private;
GdkEvent *new_event; GdkEvent *new_event;
if (!event_hash)
event_hash = g_hash_table_new (g_direct_hash, NULL);
new_private = g_slice_new0 (GdkEventPrivate); new_private = g_slice_new0 (GdkEventPrivate);
new_private->flags = 0; new_private->flags = 0;
...@@ -485,7 +488,7 @@ gdk_event_free (GdkEvent *event) ...@@ -485,7 +488,7 @@ gdk_event_free (GdkEvent *event)
} }
g_hash_table_remove (event_hash, event); g_hash_table_remove (event_hash, event);
g_slice_free (GdkEventPrivate, event); g_slice_free (GdkEventPrivate, (GdkEventPrivate*) event);
} }
/** /**
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment