leak issue #3

Closed
rocbird opened this Issue Feb 26, 2012 · 0 comments

Comments

Projects
None yet
2 participants

rocbird commented Feb 26, 2012

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);

rsieiro was assigned Feb 26, 2012

rsieiro closed this in 4472389 Feb 26, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment