Fixed a small memory leak in PreferencesController and keychain access.
[MenuTunes.git] / PreferencesController.m
index 87181d4..0a796dc 100755 (executable)
@@ -189,6 +189,7 @@ static PreferencesController *prefs = nil;
                if (status != noErr) {
                        ITDebugLog(@"Audioscrobbler: Error deleting keychain item: %i", status);
                }
+               SecKeychainItemFreeContent(NULL, buffer);
                CFRelease(item);
        }
        NSLog(@"Audioscrobbler: Retrieved password: \"%@\"", pass);