From 2b4faaaeac141f5303bd4768ec5ef9d25306feb9 Mon Sep 17 00:00:00 2001 From: Nicolas Aguirre Date: Thu, 12 Feb 2015 08:07:01 +0100 Subject: ecore_cocoa: remove ObjC autorelease block to avoid segv when window is closed. 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 --- src/lib/ecore_cocoa/ecore_cocoa_app.m | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/lib/ecore_cocoa') diff --git a/src/lib/ecore_cocoa/ecore_cocoa_app.m b/src/lib/ecore_cocoa/ecore_cocoa_app.m index 3aeda02ba2..5ee349c8aa 100644 --- a/src/lib/ecore_cocoa/ecore_cocoa_app.m +++ b/src/lib/ecore_cocoa/ecore_cocoa_app.m @@ -3,7 +3,6 @@ static Eina_Bool _ecore_cocoa_run_loop_cb(void *data EINA_UNUSED) { - @autoreleasepool { @try { NSEvent *e; do { @@ -30,7 +29,6 @@ _ecore_cocoa_run_loop_cb(void *data EINA_UNUSED) [NSApp reportException:except]; // XXX Maybe use Eina_Log to report the error instead } - } return ECORE_CALLBACK_RENEW; } -- cgit v1.2.1