git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37996
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
wxToolTip::~wxToolTip()
{
wxToolTip::~wxToolTip()
{
- // there is no need to Remove() this tool - it will be done automatically
- // anyhow
+ // the tooltip has to be removed before deleting. Otherwise, if it is visible
+ // while being deleted, there will be a delay before it goes away.
+ Remove();
}
// ----------------------------------------------------------------------------
}
// ----------------------------------------------------------------------------