#include "ofxCore.h" #define kOfxActionDestroyInstance "OfxActionDestroyInstance"
handle
handle to the plug-in instance, cast to an
OfxImageEffectHandle
inArgs
is redundant and is set to NULL,
outArgs
is redundant and is set to NULL.
This action is the last passed to a plug-in's instance before its destruction. It is there to allow a plugin to destroy any per-instance data structures it may have created.
kOfxActionCreateInstance
has been called on the handle,
To some extent, what is returned is moot, a bit like throwing an exception in a C++ destructor, so the host should continue destruction of the instance regardless. However...