Toggle navigation
Toggle navigation
This project
Loading...
Sign in
尹诚
/
Mapbox-iOS-SDK
·
Commits
Go to a project
GitLab
Go to dashboard
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
devel-hb
2008-11-07 15:53:34 +0000
Commit
1628aa3de2d7fe4aab260b1ff74756070338ddf7
1 parent
075e7ede
fixed memory leak: release data objects in RMMarker
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
MapView/Map/RMMarker.h
MapView/Map/RMMarker.m
MapView/Map/RMMarker.h
View file @
1628aa3
...
...
@@ -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
;
...
...
MapView/Map/RMMarker.m
View file @
1628aa3
...
...
@@ -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
);
...
...
Please
register
or
login
to post a comment