In the object destructor, leave m_cocoaNSView intact for base class destructors
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21909 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -39,8 +39,6 @@ bool wxRadioBox::Create(wxWindow *parent, wxWindowID winid,
|
||||
|
||||
wxRadioBox::~wxRadioBox()
|
||||
{
|
||||
CocoaRemoveFromParent();
|
||||
SetNSView(NULL);
|
||||
}
|
||||
|
||||
// selection
|
||||
|
@@ -38,8 +38,6 @@ bool wxSlider::Create(wxWindow *parent, wxWindowID winid,
|
||||
|
||||
wxSlider::~wxSlider()
|
||||
{
|
||||
CocoaRemoveFromParent();
|
||||
SetNSView(NULL);
|
||||
}
|
||||
|
||||
#endif // wxUSE_SLIDER
|
||||
|
@@ -38,8 +38,6 @@ bool wxStaticBitmap::Create(wxWindow *parent, wxWindowID winid,
|
||||
|
||||
wxStaticBitmap::~wxStaticBitmap()
|
||||
{
|
||||
CocoaRemoveFromParent();
|
||||
SetNSView(NULL);
|
||||
}
|
||||
|
||||
void wxStaticBitmap::SetIcon(const wxIcon& icon)
|
||||
|
@@ -36,7 +36,5 @@ bool wxStaticLine::Create(wxWindow *parent, wxWindowID winid,
|
||||
|
||||
wxStaticLine::~wxStaticLine()
|
||||
{
|
||||
CocoaRemoveFromParent();
|
||||
SetNSView(NULL);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user