NPN_ReleaseVariantValue() releases the value in the given variant.
#include <npruntime.h> void NPN_ReleaseVariantValue(NPVariant *variant);
The function has the following parameters:
- The variant whose value is to be released.
NPN_ReleaseVariantValue() releases the value in the given variant. This must always be called on result variants and such in this API, i.e. any
NPVariant whose value comes from a call that passes back an
NPVariant must be released using this function. Access to the value in an
NPVariant that has been released will result in undefined behavior.