inspector: Fix a crash

gdk_wayland_color_get_color_manager() rightfully is not NULL-safe.

Fixes: 2031ec1b57 ("inspector: Show the color management protocol")
This commit is contained in:
Robert Mader 2024-07-16 10:30:10 +02:00
parent fee4ad0174
commit d448e12cf4

View File

@ -696,7 +696,8 @@ add_wayland_protocols (GdkDisplay *display,
append_wayland_protocol_row (gen, (struct wl_proxy *)d->viewporter);
append_wayland_protocol_row (gen, (struct wl_proxy *)d->presentation);
append_wayland_protocol_row (gen, (struct wl_proxy *)d->single_pixel_buffer);
append_wayland_protocol_row (gen, gdk_wayland_color_get_color_manager (d->color));
if (d->color)
append_wayland_protocol_row (gen, gdk_wayland_color_get_color_manager (d->color));
}
}
#endif