Merge branch 'clipboard-seg' into 'main'

x11: Check return of gdk_x11_get_xatom_name_for_display

See merge request GNOME/gtk!4607
This commit is contained in:
Matthias Clasen 2022-04-01 00:56:32 +00:00
commit a3cedb0163

View File

@ -248,6 +248,10 @@ gdk_x11_clipboard_formats_from_atoms (GdkDisplay *display,
const char *name;
name = gdk_x11_get_xatom_name_for_display (display , atoms[i]);
if (!name)
{
continue;
}
if (strchr (name, '/'))
{
gdk_content_formats_builder_add_mime_type (builder, name);