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:
parent
4ca66f0750
commit
86700a70d3
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user