Commits

Michael Baltaks committed d234e12

Play extra safe for ARC

Comments (0)

Files changed (1)

ISO8601DateFormatter.m

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