Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

leak issue #3

Closed
rocbird opened this Issue · 0 comments

2 participants

@rocbird

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 rsieiro was assigned
@rsieiro rsieiro closed this issue from a commit
@rsieiro Release CFDictionaryRef instances correctly. Fixes #3
CFDictionaryRef instances (cast from NSDictionary with __bridge_retained) were not being released, which caused leaks.
4472389
@rsieiro rsieiro closed this in 4472389
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.