Move modifier to __weak for the highlighted layer in ASTextNode (#1756)

This commit is contained in:
Michael Schneider
2016-06-16 18:12:57 -07:00
committed by appleguy
parent c857e809f4
commit efab1a4855

View File

@@ -619,7 +619,7 @@ static NSArray *DefaultLinkAttributeNames = @[ NSLinkAttributeName ];
if (_activeHighlightLayer) {
if (animated) {
__unsafe_unretained CALayer *weakHighlightLayer = _activeHighlightLayer;
__weak CALayer *weakHighlightLayer = _activeHighlightLayer;
_activeHighlightLayer = nil;
weakHighlightLayer.opacity = 0.0;