From: ritsuka Date: Sat, 26 Apr 2008 07:58:30 +0000 (+0000) Subject: MacGUI: Add a return type to controller's init method. Patch by blindjimmy. X-Git-Url: http://git.osdn.jp/view?a=commitdiff_plain;ds=sidebyside;h=cbb77fa4a65cb183f5d1f715176036715f050059;p=handbrake-jp%2Fhandbrake-jp-git.git MacGUI: Add a return type to controller's init method. Patch by blindjimmy. git-svn-id: svn://localhost/HandBrake/trunk@1444 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- diff --git a/macosx/Controller.mm b/macosx/Controller.mm index 85417e3a..1397e8b2 100644 --- a/macosx/Controller.mm +++ b/macosx/Controller.mm @@ -33,9 +33,14 @@ static NSString * ChooseSourceIdentifier = @"Choose Source It *******************************/ @implementation HBController -- init +- (id)init { self = [super init]; + if( !self ) + { + return nil; + } + [HBPreferencesController registerUserDefaults]; fHandle = NULL; /* Check for check for the app support directory here as