Commits

Michael Baltaks committed 7b49615

Fix purgeGlobalCaches for ARC

Comments (0)

Files changed (1)

ISO8601DateFormatter.m

 }
 
 + (void) purgeGlobalCaches {
-#if !__has_feature(objc_arc)
 	NSMutableDictionary *oldCache = timeZonesByOffset;
-#endif
 	timeZonesByOffset = nil;
 	SAFE_ARC_RELEASE(oldCache);
+    oldCache = nil;
 }
 
 - (NSCalendar *) makeCalendarWithDesiredConfiguration {