Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions MSWeakTimer.m
Original file line number Diff line number Diff line change
Expand Up @@ -201,16 +201,17 @@ - (void)timerFired
{
return;
}


MSWeakTimer *strongSelf = self;
// We're not worried about this warning because the selector we're calling doesn't return a +1 object.
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Warc-performSelector-leaks"
[self.target performSelector:self.selector withObject:self];
#pragma clang diagnostic pop

if (!self.repeats)
if (!strongSelf.repeats)
{
[self invalidate];
[strongSelf invalidate];
}
}

Expand Down