components/prboom/mmus2mid.c
//
// FreeTracks()
//
// Free all track allocations in the MIDI structure
//
// Passed a pointer to an Allegro MIDI structure
// Returns nothing
//
FreeTracks()
Free all track allocations in the MIDI structure

Passed a pointer to an Allegro MIDI structure
Returns nothing
FreeTracks () Free all track allocations in the MIDI structure Passed a pointer to an Allegro MIDI structure Returns nothing
static void FreeTracks(MIDI *mididata)
{
  int i;
  for (i=0; i<MIDI_TRACKS; i++)
  {
    free(mididata->track[i].data);
    mididata->track[i].data = NULL;
    mididata->track[i].len = 0;
  }
}
static void FreeTracks ( MIDI * mididata ) { int i ; for ( i = 0 ; i < MIDI_TRACKS ; i ++ ) { free ( mididata -> track [ i ] . data ) ; mididata -> track [ i ] . data = NULL ; mididata -> track [ i ] . len = 0 ; } }
FreeTracks()
Free all track allocations in the MIDI structure
FreeTracks () Free all track allocations in the MIDI structure