Eslam Hamdy
Eslam Hamdy

Reputation: 7396

potential leak of an object allocated on line 82 and stored in data

my Xcode 4.3.2 app terminates and raises an 'EXC_BAD_ACCESS' when i turned to product->analyze, it gives me the statement above, but i don't know how to resolve it, here's a screenshot below of the method having the problem demonstrates the situation, thanks

enter image description here

Upvotes: 0

Views: 346

Answers (1)

beryllium
beryllium

Reputation: 29767

Try this

CFDataRef cfData = (__bridge_retained CFDataRef)data;
CGDataProviderRef provider = CGDataProviderCreateWithCFData(cfData);    
CFRelease(cfData);

Upvotes: 1

Related Questions