Crash on close if Export dialog is floating

Summary:

If Export dialog is floating then Inkscape crashes on closing.

Steps to reproduce:

  • Open Inkscape
  • Open Export dialog
  • Make it floating
  • Close Inkscape

What happened?

Thread 1 "inkscape" received signal SIGSEGV, Segmentation fault.
SPItem::invoke_hide (this=0x0, key=0) at src/object/sp-item.cpp:1252
1252	    hide(key);

What should have happened?

Normal closing, without a crash.

Sample attachments:

backtrace_export_dialog.txt

Version info

Inkscape 1.3-dev (2d13dde, 2023-03-27)