]> git.saurik.com Git - wxWidgets.git/commitdiff
Remove crash due to reference being kept after object destroyed
authorJulian Smart <julian@anthemion.co.uk>
Thu, 19 Feb 2004 15:04:54 +0000 (15:04 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Thu, 19 Feb 2004 15:04:54 +0000 (15:04 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25863 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/tooltip.cpp

index 0ab90686a80205ccd8b484149c0e7c9d5d05b688..cec5c0f8eda641398c906534965a2312f6c2f281 100644 (file)
@@ -350,7 +350,7 @@ void wxToolTip::SetWindow(wxWindow *win)
     wxControl *control = wxDynamicCast(m_window, wxControl);
     if ( control )
     {
-        const wxArrayLong& subcontrols = control->GetSubcontrols();
+        const wxArrayLong subcontrols = control->GetSubcontrols();
         size_t count = subcontrols.GetCount();
         for ( size_t n = 0; n < count; n++ )
         {