From 53bed0ff214c2e523037c94a62244b863d0c6eec Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Sat, 13 Nov 2010 13:25:10 -0800 Subject: Use CYPoolStart/End instead of _pool (just starting). --- MobileCydia.mm | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'MobileCydia.mm') diff --git a/MobileCydia.mm b/MobileCydia.mm index 98a99da..1be5d28 100644 --- a/MobileCydia.mm +++ b/MobileCydia.mm @@ -197,6 +197,13 @@ void PrintTimes() { #define _pooled _H _pool([[NSAutoreleasePool alloc] init], true); +#define CYPoolStart() \ + NSAutoreleasePool *_pool([[NSAutoreleasePool alloc] init]); \ + do +#define CYPoolEnd() \ + while (false); \ + [_pool release]; + static const NSUInteger UIViewAutoresizingFlexibleBoth(UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight); void NSLogPoint(const char *fix, const CGPoint &point) { @@ -3260,7 +3267,7 @@ static NSString *Warning_; return [self popErrorWithTitle:title] || !success; } -- (void) reloadData { _pooled +- (void) reloadData { CYPoolStart() { @synchronized (self) { ++era_; @@ -3415,7 +3422,8 @@ static NSString *Warning_; _trace(); } -} } +} +} CYPoolEnd() } - (void) configure { NSString *dpkg = [NSString stringWithFormat:@"dpkg --configure -a --status-fd %u", statusfd_]; -- cgit v1.2.3