Skip to content

Commit 770f0df

Browse files
author
Scott Mckie
committed
fix major memory leak (malloc'ed memory is not freed automatically by ARC)
1 parent d70af98 commit 770f0df

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

PBGraphCellInfo.m

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@ - (id)initWithPosition:(int)p andLines:(struct PBGitGraphLine *)l
2121
return self;
2222
}
2323

24+
- (void)dealloc
25+
{
26+
free(lines);
27+
}
28+
2429
- (void)setLines:(struct PBGitGraphLine *)l
2530
{
2631
free(lines);

0 commit comments

Comments
 (0)