xwayland: fix xdg_output leak

The xdg_output wasn't cleaned up when destroying the xwl_output.

Signed-off-by: Simon Ser <contact@emersion.fr>
This commit is contained in:
Simon Ser 2021-07-05 15:30:16 +02:00 committed by Olivier Fourdan
parent 659260a0b7
commit 6f63873da5
1 changed files with 2 additions and 0 deletions

View File

@ -701,6 +701,8 @@ err:
void
xwl_output_destroy(struct xwl_output *xwl_output)
{
if (xwl_output->xdg_output)
zxdg_output_v1_destroy(xwl_output->xdg_output);
wl_output_destroy(xwl_output->output);
free(xwl_output);
}