Skip to content

Commit

Permalink
Memory leak in NSArrayChipmunkObjects. (via alex9153)
Browse files Browse the repository at this point in the history
  • Loading branch information
slembcke committed Jun 10, 2019
1 parent f875a61 commit 5d14de3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions objectivec/src/ChipmunkSpace.m
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,11 @@ -(id)initWithArray:(NSArray *)objects {
return self;
}

-(void)dealloc {
self.chipmunkObjects = nil;
[super dealloc];
}

-(NSUInteger)count
{
return [_chipmunkObjects count];
Expand Down

0 comments on commit 5d14de3

Please sign in to comment.