NPN_ReleaseObject

  • Revision slug: NPN_ReleaseObject
  • Revision title: NPN_ReleaseObject
  • Revision id: 190781
  • Created:
  • Creator: Sheppy
  • Is current revision? No
  • Comment newly imported

Revision Content

Summary

Decrements the reference count of the given NPObject. If the reference count reaches 0, the NPObject is deallocated by calling its deallocate function if one is provided; if one is not provided, free() is used.

Syntax

#include <npruntime.h>
 
void NPN_ReleaseObject(NPObject *npobj);

Parameters

The function has the following parameter:

<tt>npobj</tt>
The NPObject whose reference count should be decremented.

Returns

Nothing.

Revision Source

<p>
</p><p>
</p>
<h3 name="Summary">Summary</h3>
<p>Decrements the reference count of the given <code><a href="en/NPObject">NPObject</a></code>.  If the reference count reaches 0, the <code>NPObject</code> is deallocated by calling its <code>deallocate</code> function if one is provided; if one is not provided, <code>free()</code> is used.
</p>
<h3 name="Syntax">Syntax</h3>
<pre>#include &lt;npruntime.h&gt;
 
void NPN_ReleaseObject(NPObject *npobj);
</pre>
<h3 name="Parameters">Parameters</h3>
<p>The function has the following parameter:
</p>
<dl><dt><tt>npobj</tt>
</dt><dd>The <code>NPObject</code> whose reference count should be decremented.
</dd></dl>
<h3 name="Returns">Returns</h3>
<p>Nothing.
</p>
Revert to this revision