git.ithinksw.org
/
MenuTunes.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
082effd
)
Fixed a small memory leak in PreferencesController and keychain access.
author
Kent Sutherland
<ksuther@ithinksw.com>
Thu, 5 Jan 2006 23:03:49 +0000
(23:03 +0000)
committer
Kent Sutherland
<ksuther@ithinksw.com>
Thu, 5 Jan 2006 23:03:49 +0000
(23:03 +0000)
PreferencesController.m
patch
|
blob
|
history
diff --git
a/PreferencesController.m
b/PreferencesController.m
index
87181d4
..
0a796dc
100755
(executable)
--- a/
PreferencesController.m
+++ b/
PreferencesController.m
@@
-189,6
+189,7
@@
static PreferencesController *prefs = nil;
if (status != noErr) {
ITDebugLog(@"Audioscrobbler: Error deleting keychain item: %i", status);
}
if (status != noErr) {
ITDebugLog(@"Audioscrobbler: Error deleting keychain item: %i", status);
}
+ SecKeychainItemFreeContent(NULL, buffer);
CFRelease(item);
}
NSLog(@"Audioscrobbler: Retrieved password: \"%@\"", pass);
CFRelease(item);
}
NSLog(@"Audioscrobbler: Retrieved password: \"%@\"", pass);