GNOME Bugzilla – Bug 683815
Allow calling gdk_display_close
Last modified: 2014-01-25 02:20:15 UTC
It would be nice in some cases to support calling gdk_display_close after you are done with the main loop. This makes it much easier to inspect leak reports from valgrind because if we don't close the display we don't close screens and a bunch of windows. Many resources in GTK+ are tied to the lifecycle of the display and/or screen. The biggest problem with doing this is that many things are called in finalize that still reference the display and screen. I think it is better to free references and resources that interact with other classes in dispose instead of finalize.
Created attachment 224035 [details] [review] Free all references to displays in dispose So that we exit cleanly if display_close is called.
Thanks for the patch, this will need careful review.
*** This bug has been marked as a duplicate of bug 85715 ***