Authored by devel-hb

fixed memory leak: release data objects in RMMarker

... ... @@ -28,6 +28,7 @@ extern NSString * const RMMarkerRedKey;
- (id) initWithUIImage: (UIImage*) image;
- (id) initWithStyle: (RMMarkerStyle*) style;
- (id) initWithNamedStyle: (NSString*) styleName;
- (void) dealloc;
@property (assign, nonatomic) RMXYPoint location;
@property (retain) NSObject* data;
... ...
... ... @@ -73,6 +73,12 @@ static CGImageRef _markerBlue = nil;
return [self initWithStyle: style];
}
- (void) dealloc
{
[data release];
[super dealloc];
}
- (void)zoomByFactor: (float) zoomFactor near:(CGPoint) center
{
self.position = RMScaleCGPointAboutPoint(self.position, zoomFactor, center);
... ...