The kill_routine function is called just before the gauge DLL is unloaded. Required by the Panel API; kill_routine is one of the functions that defines the gauge interface. To uninstall the drawing elements, call either (Panel API functions) the element_list_kill function or element_kill function.
Syntax
kill_routine( )
Example
void kill_routine ()
{
mouse_list_unregister(mouse_rect, &gauge_header);
element_list_kill(list);
}
Remarks
This is a safe place to free any memory allocated by your gauge.