src/audio/SDL_audiodev.c
changeset 2258 771bd3389e3a
parent 2060 866052b01ee5
child 2859 99210400e8b9
equal deleted inserted replaced
2257:340942cfda48 2258:771bd3389e3a
    74 SDL_FreeUnixAudioDevices(char ***devices, int *devCount)
    74 SDL_FreeUnixAudioDevices(char ***devices, int *devCount)
    75 {
    75 {
    76     int i = *devCount;
    76     int i = *devCount;
    77     if ((i > 0) && (*devices != NULL)) {
    77     if ((i > 0) && (*devices != NULL)) {
    78         while (i--) {
    78         while (i--) {
    79             SDL_free((*devices)[*devCount]);
    79             SDL_free((*devices)[i]);
    80         }
    80         }
    81     }
    81     }
    82 
    82 
    83     if (*devices != NULL) {
    83     if (*devices != NULL) {
    84         SDL_free(*devices);
    84         SDL_free(*devices);