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>
(cherry picked from commit 6f63873da5)
This commit is contained in:
Simon Ser 2021-07-05 15:30:16 +02:00 committed by Olivier Fourdan
parent 1dbb96ae48
commit 9521820e7b

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);
}