aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xwayland/xwayland.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xwayland/xwayland.c b/xwayland/xwayland.c
index ccec7c67..4cb103af 100644
--- a/xwayland/xwayland.c
+++ b/xwayland/xwayland.c
@@ -89,7 +89,7 @@ struct wlr_xwayland *wlr_xwayland_create(struct wl_display *wl_display,
};
xwayland->server = wlr_xwayland_server_create(wl_display, &options);
if (xwayland->server == NULL) {
- free(xwayland->server);
+ free(xwayland);
return NULL;
}