diff options
author | Dave MacLachlan <dmaclach@gmail.com> | 2017-11-15 08:49:59 -0800 |
---|---|---|
committer | Dave MacLachlan <dmaclach@gmail.com> | 2017-11-15 08:49:59 -0800 |
commit | 8ae6844cf468d891cbca9976dfd160bd36e42cf5 (patch) | |
tree | 8222e8b9a5e091a4b26cf32178ef3c30eb251126 /objectivec | |
parent | 9d7f3133722f5e35dbe915cd7b3aadb89f9986ad (diff) |
codereview cleanup
Diffstat (limited to 'objectivec')
-rw-r--r-- | objectivec/Tests/GPBMessageTests.m | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/objectivec/Tests/GPBMessageTests.m b/objectivec/Tests/GPBMessageTests.m index 3af458d0..4d75f1e1 100644 --- a/objectivec/Tests/GPBMessageTests.m +++ b/objectivec/Tests/GPBMessageTests.m @@ -1238,7 +1238,7 @@ // with different objects that are equal). TestRecursiveMessageWithRepeatedField *message3 = [TestRecursiveMessageWithRepeatedField message]; - message3.iToI = [[GPBInt32Int32Dictionary alloc] init]; + message3.iToI = [[[GPBInt32Int32Dictionary alloc] init] autorelease]; [message3.iToI setInt32:10 forKey:20]; message3.strToStr = [NSMutableDictionary dictionaryWithObject:@"abc" forKey:@"123"]; @@ -1324,7 +1324,7 @@ XCTAssertFalse([message hasA]); GPBInt32Int32Dictionary *iToI = [message.a.iToI retain]; XCTAssertEqual(iToI->_autocreator, message.a); // Pointer comparision - message.a.iToI = [[GPBInt32Int32Dictionary alloc] init]; + message.a.iToI = [[[GPBInt32Int32Dictionary alloc] init] autorelease]; [message.a.iToI setInt32:6 forKey:7]; XCTAssertTrue([message hasA]); XCTAssertNotEqual(message.a.iToI, iToI); // Pointer comparision |