summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2021-07-05 15:30:16 +0200
committerOlivier Fourdan <ofourdan@redhat.com>2021-10-18 14:17:28 +0200
commit9521820e7b15d9a90ab28dd389653b85b8f9abf3 (patch)
tree084a1962448624ce9c7e2c8d236b5370a4090e64
parent1dbb96ae48f1fa69752e71f25f03d2f733918ffb (diff)
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 6f63873da55de33e51c1f6849a65501e380f19bc)
-rw-r--r--hw/xwayland/xwayland-output.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/hw/xwayland/xwayland-output.c b/hw/xwayland/xwayland-output.c
index 52c505057..ef705bc01 100644
--- a/hw/xwayland/xwayland-output.c
+++ b/hw/xwayland/xwayland-output.c
@@ -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);
}