Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Objective-C: Fix memory leak in Patch (google/diff-match-patch#156)
Resolves google/diff-match-patch#156. The NSMutableArray being assigned to Patch.diffs isn't being autoreleased correctly. Since it's being assigned to a synthesized property marked with retain, and the NSMutableArray is being initialized with alloc-init, the array needs to be autoreleased so that it doesn't leak. See also Simperium/simperium-ios#89 Authored-by: Anthony Drendel <[email protected]>
- Loading branch information