Please note, this is a STATIC archive of website developer.mozilla.org from November 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

NS_RELEASE

Summary

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

foo->Release();
foo = 0;

Syntax

NS_RELEASE(foo);

See Also

NS_ADDREF, NS_IF_RELEASE

Document Tags and Contributors

 Contributors to this page: teoli, Nickolay, Biesi
 Last updated by: Nickolay,