fixes potential crash under gatekeeper
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74076 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
da73c5c65b
commit
cd15bcaf50
@ -196,6 +196,7 @@ wxFileDialog::wxFileDialog(
|
||||
m_filterIndex = -1;
|
||||
m_sheetDelegate = [[ModalDialogDelegate alloc] init];
|
||||
[(ModalDialogDelegate*)m_sheetDelegate setImplementation: this];
|
||||
m_delegate = nil;
|
||||
}
|
||||
|
||||
wxFileDialog::~wxFileDialog()
|
||||
@ -463,7 +464,6 @@ void wxFileDialog::SetupExtraControls(WXWindow nativeWindow)
|
||||
}
|
||||
|
||||
NSView* accView = nil;
|
||||
m_delegate = nil;
|
||||
|
||||
if ( m_useFileTypeFilter )
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user