X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ef3e4a2c810ab1f156a3b007165b46e4332c67f3..0425151023593cb31da0ee0a652da173ca9abfde:/src/cocoa/slider.mm diff --git a/src/cocoa/slider.mm b/src/cocoa/slider.mm index ab53b6c04b..7e319e4844 100644 --- a/src/cocoa/slider.mm +++ b/src/cocoa/slider.mm @@ -9,6 +9,7 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// +#include "wx/setup.h" #if wxUSE_SLIDER #include "wx/app.h" @@ -37,8 +38,6 @@ bool wxSlider::Create(wxWindow *parent, wxWindowID winid, wxSlider::~wxSlider() { - CocoaRemoveFromParent(); - SetNSView(NULL); } #endif // wxUSE_SLIDER