Skip to content

Commit

Permalink
Conditionally release GCD object. Fixes steipete#22
Browse files Browse the repository at this point in the history
  • Loading branch information
steipete committed Apr 11, 2013
1 parent 7ca2c45 commit f3353ee
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions SDURLCache.m
Original file line number Diff line number Diff line change
Expand Up @@ -796,7 +796,9 @@ - (BOOL)isCached:(NSURL *)url {
- (void)dealloc {
if(_maintenanceTimer) {
dispatch_source_cancel(_maintenanceTimer);
#if !OS_OBJECT_USE_OBJC
dispatch_release(_maintenanceTimer);
#endif
}
_diskCachePath = nil;
_diskCacheInfo = nil;
Expand Down

0 comments on commit f3353ee

Please sign in to comment.