xwayland: free server in error path

This commit is contained in:
Antonin Décimo 2020-06-04 16:23:51 +02:00 committed by Simon Ser
parent d9bb792794
commit 1ae2d976c0
1 changed files with 1 additions and 1 deletions

View File

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