diff --git a/Source/GSToolTips.m b/Source/GSToolTips.m index d7e1f020f..c09a0d790 100644 --- a/Source/GSToolTips.m +++ b/Source/GSToolTips.m @@ -406,7 +406,8 @@ static BOOL restoreMouseMoved; { NSUInteger idx = 0; NSMutableIndexSet *indexes = [NSMutableIndexSet new]; - FOR_IN(GSTrackingRect*, rect, ((NSViewPtr)view)->_tracking_rects) + id tracking_rects = ((NSViewPtr)view)->_tracking_rects; + FOR_IN(GSTrackingRect*, rect, tracking_rects) if ((rect->owner == self) && NSContainsRect(aRect, rect->rectangle)) { RELEASE((GSTTProvider*)rect->user_data); @@ -415,7 +416,7 @@ static BOOL restoreMouseMoved; [rect invalidate]; } idx++; - END_FOR_IN(((NSViewPtr)view)->_tracking_rects) + END_FOR_IN(tracking_rects) [((NSViewPtr)view)->_tracking_rects removeObjectsAtIndexes: indexes]; if ([((NSViewPtr)view)->_tracking_rects count] == 0) { diff --git a/Source/NSTextView.m b/Source/NSTextView.m index 242dc6c81..aef0a4ca9 100644 --- a/Source/NSTextView.m +++ b/Source/NSTextView.m @@ -3903,7 +3903,7 @@ Figure out how the additional layout stuff is supposed to work. atIndex: startIndex effectiveRange: NULL]; } - END_FOR_IN(((NSViewPtr)view)->_tracking_rects) + END_FOR_IN(_tracking_rects) return nil; }