summaryrefslogtreecommitdiff
path: root/src/lib/ecore_cocoa/ecore_cocoa_app.m
diff options
context:
space:
mode:
authorNicolas Aguirre <aguirre.nicolas@gmail.com>2015-02-12 08:07:01 +0100
committerCedric BAIL <cedric@osg.samsung.com>2015-03-12 07:43:58 +0100
commit2b4faaaeac141f5303bd4768ec5ef9d25306feb9 (patch)
tree14ce09e673e7495925f8ff296feb16febbf0347e /src/lib/ecore_cocoa/ecore_cocoa_app.m
parent3c14cab0c676e349a9f1f01e9aadd2a2aec546b5 (diff)
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 <cedric@osg.samsung.com>
Diffstat (limited to 'src/lib/ecore_cocoa/ecore_cocoa_app.m')
-rw-r--r--src/lib/ecore_cocoa/ecore_cocoa_app.m2
1 files changed, 0 insertions, 2 deletions
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 @@
3static Eina_Bool 3static Eina_Bool
4_ecore_cocoa_run_loop_cb(void *data EINA_UNUSED) 4_ecore_cocoa_run_loop_cb(void *data EINA_UNUSED)
5{ 5{
6 @autoreleasepool {
7 @try { 6 @try {
8 NSEvent *e; 7 NSEvent *e;
9 do { 8 do {
@@ -30,7 +29,6 @@ _ecore_cocoa_run_loop_cb(void *data EINA_UNUSED)
30 [NSApp reportException:except]; 29 [NSApp reportException:except];
31 // XXX Maybe use Eina_Log to report the error instead 30 // XXX Maybe use Eina_Log to report the error instead
32 } 31 }
33 }
34 32
35 return ECORE_CALLBACK_RENEW; 33 return ECORE_CALLBACK_RENEW;
36} 34}