Fix removing tools from wxToolBar in wxOSX.

Release the tool instead of retaining it (typo?) and also remove it from the
toolbar view.

See #16663.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@78320 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2014-12-25 01:32:19 +00:00
parent 26216bccba
commit 6ecf4dcbfa

View File

@@ -114,7 +114,8 @@ public:
{ {
if ( !IsControl() ) if ( !IsControl() )
{ {
[m_controlHandle retain]; [m_controlHandle removeFromSuperview];
[m_controlHandle release];
} }
else else
{ {