OSDN Git Service

MacGUI: Add a return type to controller's init method. Patch by blindjimmy.
authorritsuka <ritsuka@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Sat, 26 Apr 2008 07:58:30 +0000 (07:58 +0000)
committerritsuka <ritsuka@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Sat, 26 Apr 2008 07:58:30 +0000 (07:58 +0000)
git-svn-id: svn://localhost/HandBrake/trunk@1444 b64f7644-9d1e-0410-96f1-a4d463321fa5

macosx/Controller.mm

index 85417e3..1397e8b 100644 (file)
@@ -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