зеркало из https://github.com/mozilla/pjs.git
Camino only - Bug 368570: Don't leak keychain items during form fill. sr=pink
This commit is contained in:
Родитель
fe665b0ec1
Коммит
c2817d4975
|
@ -120,7 +120,7 @@
|
|||
NSMutableArray* matchingItems = [NSMutableArray array];
|
||||
SecKeychainItemRef keychainItemRef;
|
||||
while ((status = SecKeychainSearchCopyNext(searchRef, &keychainItemRef)) == noErr) {
|
||||
[matchingItems addObject:[[KeychainItem alloc] initWithRef:keychainItemRef]];
|
||||
[matchingItems addObject:[[[KeychainItem alloc] initWithRef:keychainItemRef] autorelease]];
|
||||
}
|
||||
CFRelease(searchRef);
|
||||
|
||||
|
@ -169,6 +169,8 @@
|
|||
CFRelease(mKeychainItemRef);
|
||||
[mUsername release];
|
||||
[mPassword release];
|
||||
[mHost release];
|
||||
[mComment release];
|
||||
[super dealloc];
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче