summaryrefslogtreecommitdiffstats
path: root/macosx
diff options
context:
space:
mode:
authorritsuka <[email protected]>2008-04-26 07:58:30 +0000
committerritsuka <[email protected]>2008-04-26 07:58:30 +0000
commitb2814e9bc1c751f44f4d1f79bd1eadb69fc92846 (patch)
tree5d33d39a51d0fe37a3ed6535d5e4990661827958 /macosx
parent1ae1570b62d6ef180f25692a34a88675cd591178 (diff)
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
Diffstat (limited to 'macosx')
-rw-r--r--macosx/Controller.mm7
1 files changed, 6 insertions, 1 deletions
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