git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29991
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
- delete m_macMinimumStatic ;
- delete m_macMaximumStatic ;
- delete m_macValueStatic ;
+ // this is a special case, as we had to add windows as siblings we are
+ // responsible for their disposal, but only if we are not part of a DestroyAllChildren
+ if ( m_parent && m_parent->IsBeingDeleted() == false )
+ {
+ delete m_macMinimumStatic ;
+ delete m_macMaximumStatic ;
+ delete m_macValueStatic ;
+ }
}
int wxSlider::GetValue() const
}
int wxSlider::GetValue() const