From 2e9fcdad6eee92e2d612e3538bd2d4f53d208388 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Wed, 3 Jul 2024 21:20:48 -0400 Subject: [PATCH] wayland: Add debug spew Trying to track down ci failures from cursor theme loading. --- gdk/wayland/cursor/wayland-cursor.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gdk/wayland/cursor/wayland-cursor.c b/gdk/wayland/cursor/wayland-cursor.c index 957a577ab7..958e035e57 100644 --- a/gdk/wayland/cursor/wayland-cursor.c +++ b/gdk/wayland/cursor/wayland-cursor.c @@ -349,8 +349,10 @@ wl_cursor_theme_create(const char *path, int size, struct wl_shm *shm) struct wl_cursor_theme *theme; theme = malloc(sizeof *theme); - if (!theme) + if (!theme) { + g_warning ("malloc() failed"); return NULL; + } theme->path = strdup (path); theme->size = size; @@ -359,6 +361,7 @@ wl_cursor_theme_create(const char *path, int size, struct wl_shm *shm) theme->pool = shm_pool_create(shm, size * size * 4); if (!theme->pool) { + g_warning ("shm_pool_create() failed"); free (theme->path); free (theme); return NULL;