rsieiro / RSOAuthEngine

ARC based OAuth engine for MKNetworkKit
http://rodrigo.sharpcube.com
150 stars 33 forks source link

leak issue #3

Closed rocbird closed 12 years ago

rocbird commented 12 years ago

Xcode complains that TwitterDemo has leak in -removeOAuthTokenFromKeychain , -storeOAuthTokenInKeychain and retrieveOAuthTokenFromKeychain.

It does not like this line :

SecItemDelete((__bridge_retained CFDictionaryRef) keychainQuery);

Maybe we should use these :

CFDictionaryRef query = (__bridge_retained CFDictionaryRef) keychainQuery;
SecItemDelete(query);
CFRelease(query);