ecore_cocoa: report error when [super init] fails

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
This commit is contained in:
Jean Guyomarc'h 2015-10-14 10:27:05 +02:00 committed by Cedric BAIL
parent eba4ff041a
commit 6574b8769c
1 changed files with 2 additions and 2 deletions

View 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;