This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Patch: FYI: small event handler fix
- From: Thomas Fitzsimmons <fitzsim at redhat dot com>
- To: java-patches at gcc dot gnu dot org
- Date: Mon, 22 Dec 2003 15:46:25 -0500
- Subject: Patch: FYI: small event handler fix
Hello,
I committed this to CVS head. It fixes a crash in the pre_event_handler
function.
Tom
2003-12-22 Thomas Fitzsimmons <fitzsim@redhat.com>
* jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
(pre_event_handler): Don't dereference NULL focus_obj_ptr.
--- jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c 16 Dec 2003 17:20:34
-0000 1.14
+++ jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c 20 Dec 2003 20:10:09
-0000
@@ -1043,7 +1043,7 @@
/* A widget with a grab will get key events */
if (!GTK_IS_WINDOW (widget))
- *focus_obj_ptr = peer;
+ focus_obj_ptr = &peer;
else
{
GtkWindow *window;