X-Git-Url: http://git.ithinksw.org/MenuTunes.git/blobdiff_plain/082effddb318ef06143c52d61ee29041e1d8eccd..4909f1dfc7aca6fc2d2cfa0ad60897df44f4affe:/PreferencesController.m diff --git a/PreferencesController.m b/PreferencesController.m index 87181d4..2b1bbf8 100755 --- a/PreferencesController.m +++ b/PreferencesController.m @@ -183,15 +183,14 @@ static PreferencesController *prefs = nil; if (status != noErr) { ITDebugLog(@"Audioscrobbler: Error getting keychain item password: %i", status); } else { - NSLog(@"Audioscrobbler: password buffer: \"%s\" \"Length: %i\"", buffer, length); pass = [[NSString alloc] initWithBytes:buffer length:length encoding:NSUTF8StringEncoding]; } if (status != noErr) { ITDebugLog(@"Audioscrobbler: Error deleting keychain item: %i", status); } + SecKeychainItemFreeContent(NULL, buffer); CFRelease(item); } - NSLog(@"Audioscrobbler: Retrieved password: \"%@\"", pass); return [pass autorelease]; }