Skip to content

Commit

Permalink
Added back the autoreleases (cost of maintaining ARC & non-ARC branches)
Browse files Browse the repository at this point in the history
  • Loading branch information
schwa committed Oct 12, 2011
1 parent 6b33144 commit 1a37720
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Support/UnitTests/CJSONSerializer_UnitTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ - (void)testSlashInStrings
NSString *jsonEquivalent = @"{\"a\":\"slash/slash\"}";
NSDictionary *dictionary = [NSDictionary dictionaryWithObject:@"slash/slash" forKey:@"a"];
id theObject = [[CJSONSerializer serializer] serializeObject:dictionary error:nil];
NSString *resultString = [[NSString alloc] initWithData:theObject encoding:NSUTF8StringEncoding];
NSString *resultString = [[[NSString alloc] initWithData:theObject encoding:NSUTF8StringEncoding] autorelease];
STAssertEqualObjects(resultString, jsonEquivalent, nil);
}

Expand All @@ -155,7 +155,7 @@ - (void)testEscapedSlashInStrings
CJSONSerializer *theSerializer = [CJSONSerializer serializer];
theSerializer.options = kJSONSerializationOptions_EncodeSlashes;
id theObject = [theSerializer serializeObject:dictionary error:nil];
NSString *resultString = [[NSString alloc] initWithData:theObject encoding:NSUTF8StringEncoding];
NSString *resultString = [[[NSString alloc] initWithData:theObject encoding:NSUTF8StringEncoding] autorelease];
STAssertEqualObjects(resultString, jsonEquivalent, nil);
}

Expand Down

0 comments on commit 1a37720

Please sign in to comment.