rsieiro/RSOAuthEngine — Issue #3: leak issue
Author: rocbird
Created: 2012-02-26 11:44:07+00:00
State: open

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