Camino only - Bug 382801: Ensure that the keychain cache key lasts as long as it is used. r/sr=josh

git-svn-id: svn://10.0.0.236/trunk@227476 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
stuart.morgan%alumni.case.edu 2007-06-04 17:24:23 +00:00
parent 4ca66f0750
commit 86700a70d3

View File

@ -566,7 +566,9 @@ int KeychainPrefChangedCallback(const char* inPref, void* unused)
}
- (void)expirationTimerFired:(NSTimer*)theTimer {
[self cacheKeychainEntry:nil forKey:[theTimer userInfo]];
// Ensure that the key will survive past the timer invalidation
NSString* key = [[[theTimer userInfo] retain] autorelease];
[self cacheKeychainEntry:nil forKey:key];
}
@end