mirror of
https://github.com/brl/mutter.git
synced 2025-02-23 16:34:10 +00:00
MetaSurfaceActorWayland: Don't dereference surface before NULL check
Fixes regression introduced in ba7c524a18d73679ba1e2b8835254774f7726e8d. https://bugzilla.gnome.org/show_bug.cgi?id=744453
This commit is contained in:
parent
f295349e26
commit
5d10196919
@ -108,10 +108,10 @@ meta_surface_actor_wayland_get_scale (MetaSurfaceActorWayland *actor)
|
|||||||
{
|
{
|
||||||
MetaSurfaceActorWaylandPrivate *priv = meta_surface_actor_wayland_get_instance_private (actor);
|
MetaSurfaceActorWaylandPrivate *priv = meta_surface_actor_wayland_get_instance_private (actor);
|
||||||
MetaWaylandSurface *surface = priv->surface;
|
MetaWaylandSurface *surface = priv->surface;
|
||||||
MetaWindow *window = surface->window;
|
MetaWindow *window = NULL;
|
||||||
int output_scale = 1;
|
int output_scale = 1;
|
||||||
|
|
||||||
if (!priv->surface)
|
if (!surface)
|
||||||
return 1;
|
return 1;
|
||||||
|
|
||||||
while (surface)
|
while (surface)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user