We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dc7833f commit 685c16dCopy full SHA for 685c16d
External/diffmatchpatch/DiffMatchPatch.m
@@ -190,7 +190,7 @@ - (id)copyWithZone:(NSZone *)zone
190
{
191
Patch *newPatch = [[[self class] allocWithZone:zone] init];
192
193
- newPatch.diffs = [[NSMutableArray alloc] initWithArray:self.diffs copyItems:YES];
+ newPatch.diffs = [[[NSMutableArray alloc] initWithArray:self.diffs copyItems:YES] autorelease];
194
newPatch.start1 = self.start1;
195
newPatch.start2 = self.start2;
196
newPatch.length1 = self.length1;
0 commit comments