From b2814e9bc1c751f44f4d1f79bd1eadb69fc92846 Mon Sep 17 00:00:00 2001 From: ritsuka Date: Sat, 26 Apr 2008 07:58:30 +0000 Subject: [PATCH] MacGUI: Add a return type to controller's init method. Patch by blindjimmy. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1444 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- macosx/Controller.mm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/macosx/Controller.mm b/macosx/Controller.mm index 85417e3a9..1397e8b28 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 -- 2.40.0