Do not dereference NULL.
This commit is contained in:
parent
13badba158
commit
0b978e61aa
@ -1641,11 +1641,13 @@ process_shape (Mutter *compositor,
|
|||||||
{
|
{
|
||||||
MutterWindow *cw = find_window_in_display (compositor->display,
|
MutterWindow *cw = find_window_in_display (compositor->display,
|
||||||
event->window);
|
event->window);
|
||||||
MutterWindowPrivate *priv = cw->priv;
|
MutterWindowPrivate *priv;
|
||||||
|
|
||||||
if (cw == NULL)
|
if (cw == NULL)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
priv = cw->priv;
|
||||||
|
|
||||||
if (event->kind == ShapeBounding)
|
if (event->kind == ShapeBounding)
|
||||||
{
|
{
|
||||||
priv->shaped = event->shaped;
|
priv->shaped = event->shaped;
|
||||||
|
Loading…
Reference in New Issue
Block a user