mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-26 06:35:58 +01:00
xwayland: free server in error path
This commit is contained in:
parent
d9bb792794
commit
1ae2d976c0
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue