mirror of
https://github.com/brl/mutter.git
synced 2024-11-13 09:46:08 -05:00
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,
|
||||
event->window);
|
||||
MutterWindowPrivate *priv = cw->priv;
|
||||
MutterWindowPrivate *priv;
|
||||
|
||||
if (cw == NULL)
|
||||
return;
|
||||
|
||||
priv = cw->priv;
|
||||
|
||||
if (event->kind == ShapeBounding)
|
||||
{
|
||||
priv->shaped = event->shaped;
|
||||
|
Loading…
Reference in New Issue
Block a user