Remove crash due to reference being kept after object destroyed
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@25863 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -357,7 +357,7 @@ void wxToolTip::SetWindow(wxWindow *win)
|
|||||||
wxControl *control = wxDynamicCast(m_window, wxControl);
|
wxControl *control = wxDynamicCast(m_window, wxControl);
|
||||||
if ( control )
|
if ( control )
|
||||||
{
|
{
|
||||||
const wxArrayLong& subcontrols = control->GetSubcontrols();
|
const wxArrayLong subcontrols = control->GetSubcontrols();
|
||||||
size_t count = subcontrols.GetCount();
|
size_t count = subcontrols.GetCount();
|
||||||
for ( size_t n = 0; n < count; n++ )
|
for ( size_t n = 0; n < count; n++ )
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user