Macro
Decrements the reference count of a pointer by one. This macro also sets the pointer to NULL. Do not use when the pointer might be NULL; use NS_IF_RELEASE in those cases.
NS_RELEASE(foo) is equal to
NS_RELEASE(foo)
foo->Release(); foo = 0;
NS_RELEASE(foo);
NS_ADDREF, NS_IF_RELEASE