From: Vadim Zeitlin Date: Sun, 6 Jan 2008 13:14:41 +0000 (+0000) Subject: don't unload libgnomevfs.so, this results in a crash on exit later so keep it loaded... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/7d287e713f13354af16a8deaba0093be1bf9af59 don't unload libgnomevfs.so, this results in a crash on exit later so keep it loaded as a lesser evil (see Gentoo bug 203389) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51034 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/gtk/gnome/gvfs.cpp b/src/gtk/gnome/gvfs.cpp index 17e8bc267f..aa96cc629f 100644 --- a/src/gtk/gnome/gvfs.cpp +++ b/src/gtk/gnome/gvfs.cpp @@ -73,6 +73,12 @@ wxGnomeVFSLibrary::wxGnomeVFSLibrary() wxGnomeVFSLibrary::~wxGnomeVFSLibrary() { + // we crash on exit later (i.e. after main() finishes) if we unload this + // library, apparently it inserts some hooks in other libraries to which we + // link implicitly (GTK+ itself?) which are not uninstalled when it's + // unloaded resulting in this crash, so just leave it in memory -- it's a + // lesser evil + m_libGnomeVFS.Detach(); } bool wxGnomeVFSLibrary::IsOk()