Skip to content
This repository has been archived by the owner on Aug 31, 2018. It is now read-only.

Commit

Permalink
Move autorelease block inside inner loop.
Browse files Browse the repository at this point in the history
  • Loading branch information
Brent Gulanowski committed Nov 10, 2011
1 parent ae0bbb4 commit 4ac4627
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions Tests/NUDatabaseTester.m
Expand Up @@ -282,11 +282,10 @@ - (NSTimeInterval)runTestSets:(NSArray *)tests {

NSLog(@"Running test '%@' %u times...", set.name, set->count);

@autoreleasepool {
for(NSUInteger i=0; i<set->count; ++i) {

for(NSString *testName in set.testNames) {

for(NSUInteger i=0; i<set->count; ++i) {
for(NSString *testName in set.testNames) {
@autoreleasepool {

set.currentTest = testName;

NSTimeInterval time = timerBlock([self blockForTestName:testName], set);
Expand Down

0 comments on commit 4ac4627

Please sign in to comment.