I often see when we release ab object we immediately set it to nil. I know that release and nil both free the old value associated with object but in case of release it leav
It's as BJ said setting it to nil won't free up the memory, and in a non-gc collected environment would cause a memory leak. An alternative that'd possibly be valid as well would be