Commit a1c0c98e authored by Simon Ser's avatar Simon Ser
Browse files

xwayland: fix xdg_output leak

The xdg_output wasn't cleaned up when destroying the xwl_output.
Signed-off-by: Simon Ser's avatarSimon Ser <>
parent b67e514d
Pipeline #353494 passed with stages
in 7 minutes and 47 seconds
...@@ -698,6 +698,8 @@ err: ...@@ -698,6 +698,8 @@ err:
void void
xwl_output_destroy(struct xwl_output *xwl_output) xwl_output_destroy(struct xwl_output *xwl_output)
{ {
if (xwl_output->xdg_output)
wl_output_destroy(xwl_output->output); wl_output_destroy(xwl_output->output);
free(xwl_output); free(xwl_output);
} }
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