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:
@@ -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 ;
|
||||
}
|
||||
|
Reference in New Issue
Block a user