git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60788
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
// occupy
PostSizeEventToParent();
// occupy
PostSizeEventToParent();
+ // delete existing tooltips
+ for (size_t i=0; i<m_tooltips.size(); i++)
+ {
+ if (m_tooltips[i])
+ {
+ delete m_tooltips[i];
+ m_tooltips[i] = NULL;
+ }
+ }
+
// reset all current tooltips
for (size_t i=0; i<m_tooltips.size(); i++)
{
// reset all current tooltips
for (size_t i=0; i<m_tooltips.size(); i++)
{
- delete m_tooltips[i];
- m_tooltips[i] = NULL;
+ if (m_tooltips[i])
+ {
+ delete m_tooltips[i];
+ m_tooltips[i] = NULL;
+ }
}
// shrink/expand the array:
}
// shrink/expand the array: