Overview

The module should destroy the component held in event->object. This will be the last event called in association with this component, and may be the last event received by the module, if this is the last remaining instance of this component.

Context

This event will be fired once, at the very end of termination phase.

Action

  • Destroy the existing component.

Example

This is the implementation used in the 1199 bindings.

C++ API (1199)
case EVENT_MODULE_DESTROY: { delete (COMPONENT_CLASS_CPP*) event->object; return C_OK; }

Example

This is the implementation used in the C process template.

C Source Code (against 1266)
case EVENT_MODULE_DESTROY: { free(object); return C_OK; }