Fixed memory leaks in SOGoSyncCacheObject and correctly kill the cache upon each EAS iteration

This commit is contained in:
Ludovic Marcotte
2014-12-22 19:59:33 -05:00
parent 72732879fa
commit 255bcbe92f
4 changed files with 11 additions and 6 deletions
+7 -1
View File
@@ -21,6 +21,8 @@
#import <Foundation/NSBundle.h>
#import <SOGo/SOGoCache.h>
#import <SOGo/NSObject+Utilities.h>
#import <SOGo/SOGoFolder.h>
#import <NGObjWeb/NSException+HTTP.h>
@@ -54,13 +56,17 @@
ex = [dispatcher dispatchRequest: request inResponse: response context: context];
//[[self class] memoryStatistics];
if (ex)
{
return [NSException exceptionWithHTTPStatus: 500];
}
RELEASE(dispatcher);
[[SOGoCache sharedCache] killCache];
return response;
}