Fix memory issue

This commit is contained in:
Andreas Linde 2012-01-07 12:36:56 +01:00
parent 3b5bf19433
commit 78c45db55a

View File

@ -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]) {