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

Otherwise the mess is full :)

Signed-off-by: Kamen Mazdrashki <kmazdrashki@zentyal.com>
pull/49/head
Kamen Mazdrashki 2014-03-20 16:27:03 +01:00 committed by Julio García
parent 2c94d21f3e
commit 6be768af42
1 changed files with 2 additions and 1 deletions

View File

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