Commit 37ef7f03 authored by Matthias Clasen's avatar Matthias Clasen Committed by Matthias Clasen

Don't access the user data on destroyed windows, since at best it can be a

2005-08-19  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkmain.c (gtk_get_event_widget): Don't access
	the user data on destroyed windows, since at best
	it can be a stale pointer.  (#313953, Robin Green)
parent e20eb8b7
2005-08-19 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkmain.c (gtk_get_event_widget): Don't access
the user data on destroyed windows, since at best
it can be a stale pointer. (#313953, Robin Green)
2005-08-19 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkhsv.c (paint_triangle): Avoid a buffer overrun.
......
2005-08-19 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkmain.c (gtk_get_event_widget): Don't access
the user data on destroyed windows, since at best
it can be a stale pointer. (#313953, Robin Green)
2005-08-19 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkhsv.c (paint_triangle): Avoid a buffer overrun.
......
2005-08-19 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkmain.c (gtk_get_event_widget): Don't access
the user data on destroyed windows, since at best
it can be a stale pointer. (#313953, Robin Green)
2005-08-19 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkhsv.c (paint_triangle): Avoid a buffer overrun.
......
......@@ -69,6 +69,8 @@
#include "gtkdebug.h"
#include "gtkalias.h"
#include "gdk/gdkprivate.h" /* for GDK_WINDOW_DESTROYED */
/* Private type definitions
*/
typedef struct _GtkInitFunction GtkInitFunction;
......@@ -2041,7 +2043,8 @@ gtk_get_event_widget (GdkEvent *event)
GtkWidget *widget;
widget = NULL;
if (event && event->any.window)
if (event && event->any.window &&
!GDK_WINDOW_DESTROYED (event->any.window))
gdk_window_get_user_data (event->any.window, (void**) &widget);
return widget;
......
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