Drop Downs demo crashes on close
Steps to reproduce
- Start the Drop Downs demo in gtk4-demo
- Click on the third drop down button (the one that shows a drop down with a search field)
- Close the drop down again
- Close the window
Version information
GTK 4, built from master today, commit: 9ee7bdf4. Linux. Wayland. The crash doesn't happen if I specify GDK_BACKEND=x11.
Backtrace
==19861== Process terminating with default action of signal 11 (SIGSEGV): dumping core
==19861== General Protection Fault
==19861== at 0x51444A0: g_type_check_instance_cast (gtype.c:4060)
==19861== by 0x4BD77C8: text_input_leave (gtkimcontextwayland.c:681)
==19861== by 0x5F5677D: ffi_call_unix64 (in /usr/lib64/libffi.so.6.0.4)
==19861== by 0x5F5614E: ffi_call (in /usr/lib64/libffi.so.6.0.4)
==19861== by 0x5E64FCC: ??? (in /usr/lib64/libwayland-client.so.0.3.0)
==19861== by 0x5E61A68: ??? (in /usr/lib64/libwayland-client.so.0.3.0)
==19861== by 0x5E62E43: wl_display_dispatch_queue_pending (in /usr/lib64/libwayland-client.so.0.3.0)
==19861== by 0x4C39E6C: _gdk_wayland_display_queue_events (gdkeventsource.c:217)
==19861== by 0x4C10BDF: gdk_display_get_event (gdkdisplay.c:427)
==19861== by 0x4C39B19: gdk_event_source_dispatch (gdkeventsource.c:137)
==19861== by 0x502FA8C: g_main_dispatch (gmain.c:3325)
==19861== by 0x502FA8C: g_main_context_dispatch (gmain.c:4016)
==19861== by 0x502FCE7: g_main_context_iterate.isra.23 (gmain.c:4092)