better ownership handling

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67900 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor
2011-06-09 00:32:27 +00:00
parent 974c115dff
commit 6a62b2c6ed

View File

@@ -167,6 +167,7 @@ int RunMixedFontDialog(wxFontDialog* dialog)
NSRect rectBox = NSMakeRect( 0 , 0 , 192 , 40 );
accessoryView = [[wxMacFontPanelAccView alloc] initWithFrame:rectBox];
[fontPanel setAccessoryView:accessoryView];
[accessoryView release];
[fontPanel setDefaultButtonCell:[[accessoryView okButton] cell]] ;
}
@@ -220,7 +221,6 @@ int RunMixedFontDialog(wxFontDialog* dialog)
retval = wxID_OK ;
}
[fontPanel setAccessoryView:nil];
[accessoryView release];
return retval ;
}