aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2019-09-18 00:25:00 +0300
committerScott Anderson <ascent12@hotmail.com>2019-09-18 11:28:15 +1200
commitc808613287956cabad4d5a719b5e02cfadfe1152 (patch)
tree3b90a2bfa2c016a612942278c71c95bd54cb90bc
parent2ecfc46b93534232f49422d439e1a62d505da83f (diff)
compositor: disconnect client on OOM in create_surface
-rw-r--r--types/wlr_compositor.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/types/wlr_compositor.c b/types/wlr_compositor.c
index c4dba2b4..f3ea8cbb 100644
--- a/types/wlr_compositor.c
+++ b/types/wlr_compositor.c
@@ -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;
}