mirror of
https://github.com/brl/mutter.git
synced 2024-12-24 12:02:04 +00: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