autorelease block is used in ObjC to release automatically objects not used
anymore. Placed here this block release the NSWindow we created by hand in the
ecore_cocoa code and give us a SEGV as we use memory already freed
automatically. Removing this block fix this issue.
@fix
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
static Eina_Bool
_ecore_cocoa_run_loop_cb(void *data EINA_UNUSED)
{
- @autoreleasepool {
@try {
NSEvent *e;
do {
[NSApp reportException:except];
// XXX Maybe use Eina_Log to report the error instead
}
- }
return ECORE_CALLBACK_RENEW;
}