X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/524c47aa3adf2af11a3069fd5da035a604f08f66..86e4f8ad085fa0d179e3f1ccb5b03c3471a11cec:/src/osx/toolbar_osx.cpp diff --git a/src/osx/toolbar_osx.cpp b/src/osx/toolbar_osx.cpp index 310eb916b5..bc613ada68 100644 --- a/src/osx/toolbar_osx.cpp +++ b/src/osx/toolbar_osx.cpp @@ -26,6 +26,12 @@ IMPLEMENT_DYNAMIC_CLASS(wxToolBar, wxControl) -// no common implementation +bool wxToolBar::Destroy() +{ +#if wxOSX_USE_NATIVE_TOOLBAR + MacUninstallNativeToolbar(); +#endif + return wxToolBarBase::Destroy(); +} #endif // wxUSE_TOOLBAR