1. Michael Baltaks
  2. ISO 8601 parser/unparser

Commits

Michael Baltaks  committed 7b49615

Fix purgeGlobalCaches for ARC

  • Participants
  • Parent commits 4ca16a4
  • Branches default

Comments (0)

Files changed (1)

File ISO8601DateFormatter.m

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