Commit 1cc25861 authored by Guido Gunther's avatar Guido Gunther

layersurface: Fix wrong assertion

We want to check for equality. This avoids a leak.
parent 5d29e1b3
Pipeline #501 passed with stages
in 17 minutes and 39 seconds
......@@ -71,7 +71,7 @@ static void layer_surface_closed (void *data,
PhoshLayerSurface *self = data;
PhoshLayerSurfacePrivate *priv = phosh_layer_surface_get_instance_private (self);
g_return_if_fail (priv->layer_surface != surface);
g_return_if_fail (priv->layer_surface == surface);
zwlr_layer_surface_v1_destroy(priv->layer_surface);
priv->layer_surface = NULL;
gtk_widget_destroy (GTK_WIDGET (self));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment