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
Justin R. Miller
11 years ago
Commit
23a9894b2e7288b422444d338d8562f2b8c0e7c8
1 parent
c2b625b5
fixes #308: handle dispatch queues properly with ARC on iOS 6+
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
0 deletions
MapView/Map/RMAbstractWebMapSource.m
MapView/Map/RMMapboxSource.h
MapView/Map/RMMapboxSource.m
MapView/Map/RMAbstractWebMapSource.m
View file @
23a9894
...
...
@@ -130,7 +130,9 @@
// wait for whole group of fetches (with retries) to finish, then clean up
//
dispatch_group_wait
(
fetchGroup
,
dispatch_time
(
DISPATCH_TIME_NOW
,
NSEC_PER_SEC
*
self
.
requestTimeoutSeconds
));
#if ! OS_OBJECT_USE_OBJC
dispatch_release
(
fetchGroup
);
#endif
// composite the collected images together
//
...
...
MapView/Map/RMMapboxSource.h
View file @
23a9894
...
...
@@ -158,6 +158,10 @@ typedef enum : NSUInteger {
* Note that you may want to clear the tile cache after changing this value in order to provide a consistent experience. */
@property
(
nonatomic
,
assign
)
RMMapboxSourceQuality
imageQuality
;
#if OS_OBJECT_USE_OBJC
@property
(
nonatomic
,
readonly
,
strong
)
dispatch_queue_t
dataQueue
;
#else
@property
(
nonatomic
,
readonly
,
assign
)
dispatch_queue_t
dataQueue
;
#endif
@end
...
...
MapView/Map/RMMapboxSource.m
View file @
23a9894
...
...
@@ -185,8 +185,10 @@
-
(
void
)
dealloc
{
#if ! OS_OBJECT_USE_OBJC
if
(
_dataQueue
)
dispatch_release
(
_dataQueue
);
#endif
}
#pragma mark
...
...
Please
register
or
login
to post a comment