Skip to content

Commit

Permalink
Issue #89: Small leak DiffMatchPatch.m
Browse files Browse the repository at this point in the history
  • Loading branch information
Jorge Leandro Perez committed Sep 11, 2013
1 parent dc7833f commit 685c16d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion External/diffmatchpatch/DiffMatchPatch.m
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ - (id)copyWithZone:(NSZone *)zone
{
Patch *newPatch = [[[self class] allocWithZone:zone] init];

newPatch.diffs = [[NSMutableArray alloc] initWithArray:self.diffs copyItems:YES];
newPatch.diffs = [[[NSMutableArray alloc] initWithArray:self.diffs copyItems:YES] autorelease];
newPatch.start1 = self.start1;
newPatch.start2 = self.start2;
newPatch.length1 = self.length1;
Expand Down

0 comments on commit 685c16d

Please sign in to comment.