Authored by devel-hb

fixed circular reference leak + 1 potential leak

... ... @@ -96,6 +96,7 @@ static CGImageRef _markerBlue = nil;
NSString *path = [[NSBundle mainBundle] pathForResource:filename ofType:@"png"];
CGDataProviderRef dataProvider = CGDataProviderCreateWithFilename([path UTF8String]);
CGImageRef image = CGImageCreateWithPNGDataProvider(dataProvider, NULL, FALSE, kCGRenderingIntentDefault);
[NSMakeCollectable(image) autorelease];
CGDataProviderRelease(dataProvider);
return image;
... ...
... ... @@ -17,7 +17,7 @@
RMMapContents *contents;
}
@property (retain, readwrite) RMMapContents *contents;
@property (assign, readwrite) RMMapContents *contents;
- (id)initWithContents:(RMMapContents *)mapContents;
... ...
... ... @@ -77,6 +77,12 @@ static RMMarkerStyles *sharedMarkerStyles = nil;
return self;
}
- (void)dealloc
{
[styles release];
[super dealloc];
}
- (void) addStyle: (RMMarkerStyle*) style withName: (NSString*) name
{
[styles setObject:style forKey:name];
... ...