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/branches/WX_2_8_BRANCH@51034 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2008-01-06 13:14:41 +00:00
parent cf91c9b8c1
commit 9214b97a17

View File

@@ -85,7 +85,15 @@ wxGnomeVFSLibrary::wxGnomeVFSLibrary()
wxGnomeVFSLibrary::~wxGnomeVFSLibrary() wxGnomeVFSLibrary::~wxGnomeVFSLibrary()
{ {
if (m_gnome_vfs_lib) if (m_gnome_vfs_lib)
{
// 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_gnome_vfs_lib->.Detach();
delete m_gnome_vfs_lib; delete m_gnome_vfs_lib;
}
} }
bool wxGnomeVFSLibrary::IsOk() bool wxGnomeVFSLibrary::IsOk()