summaryrefslogtreecommitdiff
path: root/src/lib/ecore_cocoa
diff options
context:
space:
mode:
authorJean Guyomarc'h <jean.guyomarch@openwide.fr>2015-10-14 10:27:05 +0200
committerCedric BAIL <cedric@osg.samsung.com>2015-12-01 12:15:32 -0800
commit6574b8769c468c2a44fc65e91b660d7087eb313c (patch)
tree9c02a271d685c69dc1f375fb497672070278eb73 /src/lib/ecore_cocoa
parenteba4ff041ac356e5a69b35f8558d6718adfac923 (diff)
ecore_cocoa: report error when [super init] fails
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
Diffstat (limited to 'src/lib/ecore_cocoa')
-rw-r--r--src/lib/ecore_cocoa/ecore_cocoa_app.m4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/ecore_cocoa/ecore_cocoa_app.m b/src/lib/ecore_cocoa/ecore_cocoa_app.m
index 999055f385..bb74d53e2c 100644
--- a/src/lib/ecore_cocoa/ecore_cocoa_app.m
+++ b/src/lib/ecore_cocoa/ecore_cocoa_app.m
@@ -52,8 +52,8 @@ _ecore_cocoa_run_loop_cb(void *data EINA_UNUSED)
52{ 52{
53 self = [super init]; 53 self = [super init];
54 if (self == nil) { 54 if (self == nil) {
55 // XXX Critical error. Abort right now! Log? 55 CRI("Failed to [super init]");
56 return nil; 56 return nil;
57 } 57 }
58 NSApp = self; // NSApp is used EVERYWHERE! Set it right now! 58 NSApp = self; // NSApp is used EVERYWHERE! Set it right now!
59 return NSApp; 59 return NSApp;