Contents

PluginDestroy

Notifies the plug-in that it is about to be unloaded.

Declaration

int (*)(void *) PluginDestroy;

Parameters

Return Value

A result code. Return errAuthorizationSuccess (no error) if the function completes successfully and errAuthorizationInternal (Security Server internal error) if any error occurs.

Discussion

When this function is called, your plug-in should release any resources it is holding and do any other cleanup necessary (such as deleting temporary files) before it is unloaded.