ecore_cocoa: report error when [super init] fails 92/82892/3
authorJean Guyomarc'h <jean.guyomarch@openwide.fr>
Wed, 14 Oct 2015 08:27:05 +0000 (10:27 +0200)
committerHermet Park <chuneon.park@samsung.com>
Fri, 2 Sep 2016 02:57:55 +0000 (19:57 -0700)
Change-Id: If0a27b021fa15c550eaa81cc0cfa6dd661d6c0fd
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
src/lib/ecore_cocoa/ecore_cocoa_app.m

index 999055f..bb74d53 100644 (file)
@@ -52,8 +52,8 @@ _ecore_cocoa_run_loop_cb(void *data EINA_UNUSED)
 {
    self = [super init];
    if (self == nil) {
-        // XXX Critical error. Abort right now! Log?
-        return nil;
+      CRI("Failed to [super init]");
+      return nil;
    }
    NSApp = self; // NSApp is used EVERYWHERE! Set it right now!
    return NSApp;