src/audio/SDL_audio.c
changeset 7719 31b5f9ff36ca
parent 7678 286c42d7c5ed
child 7904 915b9b6c9fa0
     1.1 --- a/src/audio/SDL_audio.c	Thu Aug 29 08:27:25 2013 -0700
     1.2 +++ b/src/audio/SDL_audio.c	Thu Aug 29 08:29:21 2013 -0700
     1.3 @@ -300,9 +300,7 @@
     1.4  static void
     1.5  SDL_StreamDeinit(SDL_AudioStreamer * stream)
     1.6  {
     1.7 -    if (stream->buffer != NULL) {
     1.8 -        SDL_free(stream->buffer);
     1.9 -    }
    1.10 +    SDL_free(stream->buffer);
    1.11  }
    1.12  
    1.13  #if defined(ANDROID)
    1.14 @@ -632,9 +630,7 @@
    1.15          }
    1.16      }
    1.17  
    1.18 -    if (*devices != NULL) {
    1.19 -        SDL_free(*devices);
    1.20 -    }
    1.21 +    SDL_free(*devices);
    1.22  
    1.23      *devices = NULL;
    1.24      *devCount = 0;
    1.25 @@ -761,9 +757,7 @@
    1.26      if (device->mixer_lock != NULL) {
    1.27          SDL_DestroyMutex(device->mixer_lock);
    1.28      }
    1.29 -    if (device->fake_stream != NULL) {
    1.30 -        SDL_FreeAudioMem(device->fake_stream);
    1.31 -    }
    1.32 +    SDL_FreeAudioMem(device->fake_stream);
    1.33      if (device->convert.needed) {
    1.34          SDL_FreeAudioMem(device->convert.buf);
    1.35      }