delete the TLW used by taskbar icons instead of destroying it to avoid hang on exit if there are no other windows left in the program
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50428 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -152,7 +152,13 @@ wxTaskBarIcon::~wxTaskBarIcon()
|
|||||||
RemoveIcon();
|
RemoveIcon();
|
||||||
|
|
||||||
if ( m_win )
|
if ( m_win )
|
||||||
m_win->Destroy();
|
{
|
||||||
|
// we must use delete and not Destroy() here because the latter will
|
||||||
|
// only schedule the window to be deleted during the next idle event
|
||||||
|
// processing but we may not get any idle events if there are no other
|
||||||
|
// windows left in the program
|
||||||
|
delete m_win;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Operations
|
// Operations
|
||||||
|
Reference in New Issue
Block a user