mozilla

Revision 200833 of NPN_MemFree

  • Revision slug: NPN_MemFree
  • Revision title: NPN_MemFree
  • Revision id: 200833
  • Created:
  • Creator: Pmash
  • Is current revision? No
  • Comment migration

Revision Content

{{wiki.template('Np-plugin-api')}}

Summary

Deallocates a block of allocated memory.

Syntax

#include <npapi.h>
 
void NPN_MemFree (void* ptr);

Parameters

The function has the following parameters:

ptr
Block of memory previously allocated using NPN_MemAlloc.

Description

NPN_MemFree deallocates a block of memory that was allocated using NPN_MemAlloc only. NPN_MemFree does not free memory allocated by any other means.

See Also

NPN_MemAlloc

Revision Source

<p>
{{wiki.template('Np-plugin-api')}}
</p>
<h3 name="Summary">Summary</h3>
<p>Deallocates a block of allocated memory.
</p>
<h3 name="Syntax">Syntax</h3>
<pre>#include &lt;npapi.h&gt;
 
void NPN_MemFree (void* ptr);
</pre>
<h3 name="Parameters">Parameters</h3>
<p>The function has the following parameters:
</p>
<dl><dt>ptr
</dt><dd>Block of memory previously allocated using <a href="en/NPN_MemAlloc">NPN_MemAlloc</a>.
</dd></dl>
<h3 name="Description">Description</h3>
<p><code>NPN_MemFree</code> deallocates a block of memory that was allocated using <a href="en/NPN_MemAlloc">NPN_MemAlloc</a> only. <code>NPN_MemFree</code> does not free memory allocated by any other means.
</p>
<h3 name="See_Also">See Also</h3>
<p><a href="en/NPN_MemAlloc">NPN_MemAlloc</a>
</p>
Revert to this revision