Visit Mozilla.org

nsISupports:AddRef

From MDC

« XPCOM API Reference

[edit] Summary

The AddRef method notifies the object that an interface pointer has been duplicated.

[noscript, notxpcom] nsrefcnt AddRef();

[edit] Return Values

Returns an integer value that is generally ignored.

[edit] Remarks

Every call to AddRef must be balanced with a call to Release when the interface pointer is no longer needed.