Commit 5337709
Objective-C: Fix memory leak in Patch (google#156)
Resolves google#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 <atdrendel@users.noreply.github.com>1 parent e54c85b commit 5337709
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
189 | 189 | | |
190 | 190 | | |
191 | 191 | | |
192 | | - | |
| 192 | + | |
193 | 193 | | |
194 | 194 | | |
195 | 195 | | |
| |||
0 commit comments