mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
Fix memory issue
This commit is contained in:
parent
3b5bf19433
commit
78c45db55a
@ -398,11 +398,11 @@ static NSString *kHockeyErrorDomain = @"HockeyErrorDomain";
|
|||||||
// we did write something else in the past, so for compatibility reasons do this
|
// we did write something else in the past, so for compatibility reasons do this
|
||||||
id tempLastCheck = [[NSUserDefaults standardUserDefaults] objectForKey:kDateOfLastHockeyCheck];
|
id tempLastCheck = [[NSUserDefaults standardUserDefaults] objectForKey:kDateOfLastHockeyCheck];
|
||||||
if ([tempLastCheck isKindOfClass:[NSDate class]]) {
|
if ([tempLastCheck isKindOfClass:[NSDate class]]) {
|
||||||
lastCheck_ = tempLastCheck;
|
self.lastCheck = tempLastCheck;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!lastCheck_) {
|
if (!lastCheck_) {
|
||||||
lastCheck_ = [NSDate distantPast];
|
self.lastCheck = [NSDate distantPast];
|
||||||
}
|
}
|
||||||
|
|
||||||
if ([[NSUserDefaults standardUserDefaults] objectForKey:kHockeyAllowUserSetting]) {
|
if ([[NSUserDefaults standardUserDefaults] objectForKey:kHockeyAllowUserSetting]) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user