On gdk_display_close(), the GtkSettings attached to the display are
Yet the gtk CSS code may still be called from the widget unparent,
leading to a segfault.
Check if the GtkSettings is not NULL and bail out nicely if not.
Attach a file by drag & drop or click to upload