summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2010-11-13 13:25:10 -0800
committerJay Freeman (saurik) <saurik@saurik.com>2010-11-15 14:39:12 -0800
commit53bed0ff214c2e523037c94a62244b863d0c6eec (patch)
treedfe6419e64f6b684c61cda369fb42de45ead6170
parent4985045e01d36a914c6b91f91dccef456df653ea (diff)
Use CYPoolStart/End instead of _pool (just starting).
-rw-r--r--MobileCydia.mm12
1 files changed, 10 insertions, 2 deletions
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<NSAutoreleasePool> _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_];