mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-28 14:31:10 +00:00
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:
parent
fee4ad0174
commit
d448e12cf4
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user