diff --git a/src/common/wincmn.cpp b/src/common/wincmn.cpp index 00c3b89341..a9e3999fcc 100644 --- a/src/common/wincmn.cpp +++ b/src/common/wincmn.cpp @@ -369,6 +369,14 @@ wxWindowBase::~wxWindowBase() #if wxUSE_ACCESSIBILITY delete m_accessible; #endif + +#if wxUSE_HELP + // NB: this has to be called unconditionally, because we don't know + // whether this window has associated help text or not + wxHelpProvider *helpProvider = wxHelpProvider::Get(); + if ( helpProvider ) + helpProvider->RemoveHelp(this); +#endif } void wxWindowBase::SendDestroyEvent()