]> git.saurik.com Git - wxWidgets.git/commitdiff
fixes potential crash under gatekeeper
authorStefan Csomor <csomor@advancedconcepts.ch>
Sat, 1 Jun 2013 18:29:41 +0000 (18:29 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Sat, 1 Jun 2013 18:29:41 +0000 (18:29 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74076 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/osx/cocoa/filedlg.mm

index 49e8680f065997e7d61af46796728bff36b6af15..40d4f4645f089b33d32a64865b6f1f8e9fd467b5 100644 (file)
@@ -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 )
     {