The main purpose of the cleanup phase is to free the memory resources allocated for your characters during the initialization phase. You should carry out this phase only when you have finished using HumanIK for a character.
All of these methods accept two arguments:
HIKCharacterDestroy(HIKChar1, &free); HIKCharacterStateDestroy(HIKChar1State, &free); HIKPropertySetStateDestroy(HIKChar1PropertyState, &free); HIKEffectorSetStateDestroy(HIKChar1EffectorState, &free);
As HIKCharacterDefinitions are only needed at initialization time in order to create HIKCharacters, they are typically created on the stack, as shown under Initialization. Therefore, there is no corresponding method to destroy the HIKCharacterDefinition.