Camino only - Bug 368570: Don't leak keychain items during form fill. sr=pink

This commit is contained in:
stuart.morgan%alumni.case.edu 2007-01-29 17:33:14 +00:00
Родитель fe665b0ec1
Коммит c2817d4975
1 изменённых файлов: 3 добавлений и 1 удалений

Просмотреть файл

@ -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];
}