NPN_ReleaseObject

Ā« Gecko Plugin API Reference Ā« Scripting plugins

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.