Skip to content
Snippets Groups Projects
Commit 1cc25861 authored by Guido Gunther's avatar Guido Gunther :zzz:
Browse files

layersurface: Fix wrong assertion

We want to check for equality. This avoids a leak.
parent 5d29e1b3
No related branches found
No related tags found
No related merge requests found
......@@ -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));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment