aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKirill Primak <vyivel@posteo.net>2021-09-20 17:44:06 +0300
committerSimon Ser <contact@emersion.fr>2021-09-21 10:09:09 +0200
commitccc84f11a4a039c89ad20111805c051c000ff7f7 (patch)
tree28cda7faf4ee6035a405097559b69319674b4a6c
parent0e2d36910612b849ca9c4868910b308c4bf49213 (diff)
xdg surface: check adding configure_idle for NULL
-rw-r--r--types/xdg_shell/wlr_xdg_surface.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/types/xdg_shell/wlr_xdg_surface.c b/types/xdg_shell/wlr_xdg_surface.c
index bd59a549..1613c3b4 100644
--- a/types/xdg_shell/wlr_xdg_surface.c
+++ b/types/xdg_shell/wlr_xdg_surface.c
@@ -195,6 +195,9 @@ uint32_t wlr_xdg_surface_schedule_configure(struct wlr_xdg_surface *surface) {
surface->configure_next_serial = wl_display_next_serial(display);
surface->configure_idle = wl_event_loop_add_idle(loop,
surface_send_configure, surface);
+ if (surface->configure_idle == NULL) {
+ wl_client_post_no_memory(surface->client->client);
+ }
}
return surface->configure_next_serial;
}