mirror of
https://github.com/TelegramMessenger/Telegram-iOS.git
synced 2026-07-06 03:33:41 +02:00
Fix memory issue
This commit is contained in:
parent
3b5bf19433
commit
78c45db55a
1 changed files with 2 additions and 2 deletions
|
|
@ -398,11 +398,11 @@ static NSString *kHockeyErrorDomain = @"HockeyErrorDomain";
|
|||
// we did write something else in the past, so for compatibility reasons do this
|
||||
id tempLastCheck = [[NSUserDefaults standardUserDefaults] objectForKey:kDateOfLastHockeyCheck];
|
||||
if ([tempLastCheck isKindOfClass:[NSDate class]]) {
|
||||
lastCheck_ = tempLastCheck;
|
||||
self.lastCheck = tempLastCheck;
|
||||
}
|
||||
}
|
||||
if (!lastCheck_) {
|
||||
lastCheck_ = [NSDate distantPast];
|
||||
self.lastCheck = [NSDate distantPast];
|
||||
}
|
||||
|
||||
if ([[NSUserDefaults standardUserDefaults] objectForKey:kHockeyAllowUserSetting]) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue