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:
@@ -114,7 +114,8 @@ public:
|
||||
{
|
||||
if ( !IsControl() )
|
||||
{
|
||||
[m_controlHandle retain];
|
||||
[m_controlHandle removeFromSuperview];
|
||||
[m_controlHandle release];
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Reference in New Issue
Block a user