objective-ccocoa-touchstatic-allocation

Releasing statically allocated nsarray


I have a static array in my class. When do i release it? or I don't have to worry about it? I was thinking about releasing it in dealloc method but not sure. Thanks


Solution

  • If it's static, you shouldn't release it.