Check that window_private is not NULL before using it. (#444351, David
2007-06-05 Matthias Clasen <mclasen@redhat.com> * gdk/x11/gdkevents-x11.c (gdk_event_translate): Check that window_private is not NULL before using it. (#444351, David Ronis) svn path=/trunk/; revision=18043
This commit is contained in:
committed by
Matthias Clasen
parent
2105398a55
commit
3047c1fcf2
@ -2102,7 +2102,7 @@ gdk_event_translate (GdkDisplay *display,
|
||||
else
|
||||
#endif
|
||||
#if defined(HAVE_XCOMPOSITE) && defined (HAVE_XDAMAGE) && defined (HAVE_XFIXES)
|
||||
if (display_x11->have_xdamage && window_private->composited &&
|
||||
if (display_x11->have_xdamage && window_private && window_private->composited &&
|
||||
xevent->type == display_x11->xdamage_event_base + XDamageNotify)
|
||||
{
|
||||
XDamageNotifyEvent *damage_event = (XDamageNotifyEvent *) xevent;
|
||||
|
||||
Reference in New Issue
Block a user