Authored by Mikhail Chupin

Don't call dispatch_release if dispatch_queue_t is declared as Objective-C object.

@@ -65,7 +65,9 @@ @@ -65,7 +65,9 @@
65 _memoryCache = nil; 65 _memoryCache = nil;
66 }); 66 });
67 67
  68 +#if ! OS_OBJECT_USE_OBJC
68 dispatch_release(_memoryCacheQueue); 69 dispatch_release(_memoryCacheQueue);
  70 +#endif
69 } 71 }
70 72
71 - (void)didReceiveMemoryWarning 73 - (void)didReceiveMemoryWarning
@@ -132,7 +132,9 @@ @@ -132,7 +132,9 @@
132 _tileCaches = nil; 132 _tileCaches = nil;
133 }); 133 });
134 134
  135 +#if ! OS_OBJECT_USE_OBJC
135 dispatch_release(_tileCacheQueue); 136 dispatch_release(_tileCacheQueue);
  137 +#endif
136 } 138 }
137 139
138 - (void)addCache:(id <RMTileCache>)cache 140 - (void)addCache:(id <RMTileCache>)cache