0

My project does support ARC:

enter image description here

But when i run the Xcode Analyzer, Product/Analyze, i still get memory leak such:

Potential leak of an object allocated on line xx and stored into 'xxx'.

I mean, isn't the ARC supposed to fix suck release issues? or i have to add the release/autorelease by myself?

Luca
  • 20,399
  • 18
  • 49
  • 70

1 Answers1

1

Make sure your files don't have -fno-objc-arc in linker flags. This excludes them from ARC. An easy way to check is to try releasing an object in your code, if you get a red line through the release call then the file is using ARC, xcode won't let you have any release calls in a file with ARC enabled.

danielbeard
  • 9,120
  • 3
  • 44
  • 58
  • Hi, Thanx a lot for your clarifications, actually, i tried release an object but i don't get any error, this is making things confusing to me. – Luca Jun 06 '12 at 02:39