iOS/libraries/allegro/allegro/src/modesel.c
/* destroy_driver_list:
 *  Frees allocated memory used by driver lists and mode lists.
 */
Frees allocated memory used by driver lists and mode lists.
Frees allocated memory used by driver lists and mode lists .
static void destroy_driver_list(void)
{
   int driver;
   for (driver=0; driver < driver_count; driver++) {
      if (driver_list[driver].mode_list_owned)
         _AL_FREE(driver_list[driver].mode_list);
   }
   _AL_FREE(driver_list);
   driver_list = NULL;
   driver_count = 0;
}
static void destroy_driver_list ( void ) { int driver ; for ( driver = 0 ; driver < driver_count ; driver ++ ) { if ( driver_list [ driver ] . mode_list_owned ) _AL_FREE ( driver_list [ driver ] . mode_list ) ; } _AL_FREE ( driver_list ) ; driver_list = NULL ; driver_count = 0 ; }
destroy_driver_list:
  Frees allocated memory used by driver lists and mode lists.
destroy_driver_list : Frees allocated memory used by driver lists and mode lists .