oc-sogo: Move memory clean up *after* handling the exception

Otherwise the mess is full :)

Signed-off-by: Kamen Mazdrashki <kmazdrashki@zentyal.com>
This commit is contained in:
Kamen Mazdrashki 2014-03-20 16:27:03 +01:00 committed by Julio García
parent 2c94d21f3e
commit 6be768af42

View file

@ -57,9 +57,10 @@ static BOOL leakDebugging = NO;
#define TRYCATCH_START @try { #define TRYCATCH_START @try {
#define TRYCATCH_END(pool) \ #define TRYCATCH_END(pool) \
} @catch (NSException * e) { \ } @catch (NSException * e) { \
enum mapistore_error ret = sogo_backend_handle_objc_exception(e, __PRETTY_FUNCTION__, __LINE__); \
[pool release]; \ [pool release]; \
GSUnregisterCurrentThread(); \ GSUnregisterCurrentThread(); \
return sogo_backend_handle_objc_exception(e, __PRETTY_FUNCTION__, __LINE__); \ return ret; \
} }
static enum mapistore_error static enum mapistore_error