Don't leak associations in wxCocoaDataViewControl
Fix ClearColumns() to release associations between m_OutlineView and native Cocoa control when re-creating the latter. Previously it only created a new association, but left the old one with no-deleted native control in the map. Fixes #17485.
This commit is contained in:
@@ -2739,6 +2739,13 @@ void wxWidgetImpl::RemoveAssociations(wxWidgetImpl* impl)
|
||||
}
|
||||
}
|
||||
|
||||
void wxWidgetImpl::RemoveAssociation(WXWidget control)
|
||||
{
|
||||
wxCHECK_RET( control != NULL, wxT("attempt to remove a NULL WXWidget from control map") );
|
||||
|
||||
wxWinMacControlList.erase(control);
|
||||
}
|
||||
|
||||
wxIMPLEMENT_ABSTRACT_CLASS(wxWidgetImpl, wxObject);
|
||||
|
||||
wxWidgetImpl::wxWidgetImpl( wxWindowMac* peer , bool isRootControl, bool isUserPane )
|
||||
|
Reference in New Issue
Block a user