AceT_Decoder_Delete_Proc
Abstract
Callback: Used to destroy memory allocated by the load_proc.
Syntax
<delete_proc> (state_ptr)
| Argument | Type | Description |
|---|---|---|
state_ptr |
void * |
State information. |
Return Type
void
No return value.
Header
ace_client_api.h
Example
void
op_ica_ace_decoder_delete (void * state_ptr)
{
OpT_Ica_Decoder_State * decoder_state_ptr;
FIN (op_ica_ace_decoder_load);
if (state_ptr)
{
decoder_state_ptr = (OpT_Ica_Decoder_State *)state_ptr;
// Destroy the "deep" items
op_ica_connections_destroy (decoder_state_ptr);
// Destroy the state itself
prg_mem_free (decoder_state_ptr);
}
FOUT;
}
Details
This callback is invoked when Transaction Analyzer is closed. If the client allocates any memory in AceT_Decoder_Plugin_Load_Proc, it should free that memory in this callback.