aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--types/xdg_shell/wlr_xdg_toplevel.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/types/xdg_shell/wlr_xdg_toplevel.c b/types/xdg_shell/wlr_xdg_toplevel.c
index f929508f..dee2571f 100644
--- a/types/xdg_shell/wlr_xdg_toplevel.c
+++ b/types/xdg_shell/wlr_xdg_toplevel.c
@@ -157,6 +157,7 @@ static void xdg_toplevel_handle_set_title(struct wl_client *client,
tmp = strdup(title);
if (tmp == NULL) {
+ wl_resource_post_no_memory(resource);
return;
}
@@ -173,6 +174,7 @@ static void xdg_toplevel_handle_set_app_id(struct wl_client *client,
tmp = strdup(app_id);
if (tmp == NULL) {
+ wl_resource_post_no_memory(resource);
return;
}