Memory Management Tips!

It’s REALLY recommended that you set to nil any pointer that has a reference to a released object. But it’s tedious, right?. [pointer release]; pointer = nil;.

Why don’t we use a macro instead??
[cc lang=”objc”]
#define LAWipe(x)         [x release]; x = nil;

Simple. Nice. This should help you lower down the BAD_ACCESS crashes!.