Commit 2012758c authored by Guido Gunther's avatar Guido Gunther

toplevel: Guard handle from being destroyed multiple times

Signed-off-by: Guido Gunther's avatarGuido Günther <guido.gunther@puri.sm>
parent 2615cfc2
Pipeline #50147 passed with stages
in 15 minutes and 37 seconds
......@@ -159,7 +159,8 @@ static void
phosh_toplevel_dispose (GObject *object)
{
PhoshToplevel *self = PHOSH_TOPLEVEL (object);
zwlr_foreign_toplevel_handle_v1_destroy (self->handle);
g_clear_pointer (&self->handle, zwlr_foreign_toplevel_handle_v1_destroy);
G_OBJECT_CLASS (phosh_toplevel_parent_class)->dispose (object);
}
......
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