hungio / route-me

Automatically exported from code.google.com/p/route-me
0 stars 0 forks source link

memory leak in RMLayerSet #45

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Look at initForContents. this line:
set = [[NSMutableArray alloc] init];
has no corresponding 'dealloc' for the 'set' Array. So, you leak that array.

What is the expected output? What do you see instead?
using the Leaks tool, you see the array leak.

What version of the product are you using?
1.92

Please provide any additional information below.
If you add a dealloc() like this:
- (void) dealloc 
{
    [set release];
    [super dealloc];
}
It appears to get rid of the leak.

Original issue reported on code.google.com by ggces...@gmail.com on 18 Feb 2009 at 5:13

GoogleCodeExporter commented 8 years ago
Fixed by r203

Original comment by halmuel...@gmail.com on 26 Feb 2009 at 11:50