mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-01 22:58:38 -04:00
compositor: disconnect client on OOM in create_surface
This commit is contained in:
parent
2ecfc46b93
commit
c808613287
1 changed files with 1 additions and 0 deletions
|
|
@ -147,6 +147,7 @@ static void compositor_create_surface(struct wl_client *client,
|
|||
wl_resource_get_version(resource), id, compositor->renderer,
|
||||
&compositor->surface_resources);
|
||||
if (surface == NULL) {
|
||||
wl_client_post_no_memory(client);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue