Do not dereference NULL.

This commit is contained in:
Tomas Frydrych 2009-01-08 15:44:59 +00:00
parent 13badba158
commit 0b978e61aa

View File

@ -1641,11 +1641,13 @@ process_shape (Mutter *compositor,
{
MutterWindow *cw = find_window_in_display (compositor->display,
event->window);
MutterWindowPrivate *priv = cw->priv;
MutterWindowPrivate *priv;
if (cw == NULL)
return;
priv = cw->priv;
if (event->kind == ShapeBounding)
{
priv->shaped = event->shaped;