forked from enlightenment/efl
ecore_cocoa: report error when [super init] fails
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
This commit is contained in:
parent
eba4ff041a
commit
6574b8769c
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue