Skip to content

Commit 685c16d

Browse files
author
Jorge Leandro Perez
committed
Issue #89: Small leak DiffMatchPatch.m
1 parent dc7833f commit 685c16d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

External/diffmatchpatch/DiffMatchPatch.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ - (id)copyWithZone:(NSZone *)zone
190190
{
191191
Patch *newPatch = [[[self class] allocWithZone:zone] init];
192192

193-
newPatch.diffs = [[NSMutableArray alloc] initWithArray:self.diffs copyItems:YES];
193+
newPatch.diffs = [[[NSMutableArray alloc] initWithArray:self.diffs copyItems:YES] autorelease];
194194
newPatch.start1 = self.start1;
195195
newPatch.start2 = self.start2;
196196
newPatch.length1 = self.length1;

0 commit comments

Comments
 (0)