src/training/common/commontraining.cpp
void FreeLabeledClassList(LIST ClassList) {
  MERGE_CLASS MergeClass;

  LIST nodes = ClassList;
  iterate(ClassList) /* iterate through all of the fonts */
  {
    MergeClass = reinterpret_cast<MERGE_CLASS>(ClassList->first_node());
    FreeClass(MergeClass->Class);
    delete MergeClass;
  }
  destroy(nodes);

}
/*-----------------------------------------------------------------------------*/
/**
 * This routine deallocates all of the space allocated to
 * the specified list of training samples.
 * @param ClassList list of all fonts in document
 */
This routine deallocates all of the space allocated to
the specified list of training samples.
@param ClassList list of all fonts in document
This routine deallocates all of the space allocated to the specified list of training samples . @param ClassList list of all fonts in document
void FreeLabeledClassList(LIST ClassList) {
  MERGE_CLASS MergeClass;
  LIST nodes = ClassList;
  iterate(ClassList) 
  {
    MergeClass = reinterpret_cast<MERGE_CLASS>(ClassList->first_node());
    FreeClass(MergeClass->Class);
    delete MergeClass;
  }
  destroy(nodes);
}
void FreeLabeledClassList ( LIST ClassList ) { MERGE_CLASS MergeClass ; LIST nodes = ClassList ; iterate ( ClassList ) { MergeClass = reinterpret_cast < MERGE_CLASS > ( ClassList -> first_node ( ) ) ; FreeClass ( MergeClass -> Class ) ; delete MergeClass ; } destroy ( nodes ) ; }
This routine deallocates all of the space allocated to
 the specified list of training samples.
This routine deallocates all of the space allocated to the specified list of training samples .
/* iterate through all of the fonts */