MetaSurfaceActorWayland: Don't dereference surface before NULL check
Fixes regression introduced in ba7c524a18
.
https://bugzilla.gnome.org/show_bug.cgi?id=744453
This commit is contained in:
parent
f295349e26
commit
5d10196919
1 changed files with 2 additions and 2 deletions
|
@ -108,10 +108,10 @@ meta_surface_actor_wayland_get_scale (MetaSurfaceActorWayland *actor)
|
|||
{
|
||||
MetaSurfaceActorWaylandPrivate *priv = meta_surface_actor_wayland_get_instance_private (actor);
|
||||
MetaWaylandSurface *surface = priv->surface;
|
||||
MetaWindow *window = surface->window;
|
||||
MetaWindow *window = NULL;
|
||||
int output_scale = 1;
|
||||
|
||||
if (!priv->surface)
|
||||
if (!surface)
|
||||
return 1;
|
||||
|
||||
while (surface)
|
||||
|
|
Loading…
Add table
Reference in a new issue