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:
@@ -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()
|
||||||
|
Reference in New Issue
Block a user