gdkdisplay: Don’t call _get_instance_private(NULL)
While it’s documented as being safe, it triggers warnings from ubsan.
While we work out the best way to deal with that inside the
implementation of G_ADD_PRIVATE
in GLib, let’s pragmatically just
short-circuit the code which triggers the warning here. This is helpful
because gdk_display_get_debug_flags()
is called from a number of
locations within GTK, so is likely to be hit if anyone is running a UI
app under ubsan.
See glib#3267 (comment 2033550)
Signed-off-by: Philip Withnall pwithnall@gnome.org
Helps: glib#3267