delete m_idleMutex later to avoid crashes if any windows are still left when the application exits
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49880 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -521,16 +521,21 @@ void wxApp::CleanUp()
|
|||||||
{
|
{
|
||||||
if (m_idleSourceId != 0)
|
if (m_idleSourceId != 0)
|
||||||
g_source_remove(m_idleSourceId);
|
g_source_remove(m_idleSourceId);
|
||||||
#if wxUSE_THREADS
|
|
||||||
delete m_idleMutex;
|
|
||||||
m_idleMutex = NULL;
|
|
||||||
#endif
|
|
||||||
// release reference acquired by Initialize()
|
// release reference acquired by Initialize()
|
||||||
g_type_class_unref(g_type_class_peek(GTK_TYPE_WIDGET));
|
g_type_class_unref(g_type_class_peek(GTK_TYPE_WIDGET));
|
||||||
|
|
||||||
gdk_threads_leave();
|
gdk_threads_leave();
|
||||||
|
|
||||||
wxAppBase::CleanUp();
|
wxAppBase::CleanUp();
|
||||||
|
|
||||||
|
// delete this mutex as late as possible as it's used from WakeUpIdle(), in
|
||||||
|
// particular do it after calling the base class CleanUp() which can result
|
||||||
|
// in it being called
|
||||||
|
#if wxUSE_THREADS
|
||||||
|
delete m_idleMutex;
|
||||||
|
m_idleMutex = NULL;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void wxApp::WakeUpIdle()
|
void wxApp::WakeUpIdle()
|
||||||
|
Reference in New Issue
Block a user