X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/524c47aa3adf2af11a3069fd5da035a604f08f66..6f3f38980f10a935f3b47dbf0d3b4643e96a4be2:/src/osx/toolbar_osx.cpp diff --git a/src/osx/toolbar_osx.cpp b/src/osx/toolbar_osx.cpp index 310eb916b5..5c5ed25a56 100644 --- a/src/osx/toolbar_osx.cpp +++ b/src/osx/toolbar_osx.cpp @@ -4,7 +4,7 @@ // Author: Stefan Csomor // Modified by: // Created: 04/01/98 -// RCS-ID: $Id: toolbar.cpp 54954 2008-08-03 11:27:03Z VZ $ +// RCS-ID: $Id$ // Copyright: (c) Stefan Csomor // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// @@ -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