xwayland: free server in error path

master
Antonin Décimo 5 years ago committed by Simon Ser
parent d9bb792794
commit 1ae2d976c0

@ -89,7 +89,7 @@ struct wlr_xwayland *wlr_xwayland_create(struct wl_display *wl_display,
}; };
xwayland->server = wlr_xwayland_server_create(wl_display, &options); xwayland->server = wlr_xwayland_server_create(wl_display, &options);
if (xwayland->server == NULL) { if (xwayland->server == NULL) {
free(xwayland->server); free(xwayland);
return NULL; return NULL;
} }

Loading…
Cancel
Save