Commits

Michael Baltaks  committed d234e12

Play extra safe for ARC

  • Participants
  • Parent commits 1f20f06

Comments (0)

Files changed (1)

File ISO8601DateFormatter.m

 	NSMutableDictionary *oldCache = timeZonesByOffset;
 	timeZonesByOffset = nil;
 	SAFE_ARC_RELEASE(oldCache);
-	oldCache = nil;
+	#if __has_feature(objc_arc)
+	[oldCache removeAllObjects];
+	#endif
 }
 
 - (NSCalendar *) makeCalendarWithDesiredConfiguration {