src/audio/bsd/SDL_bsdaudio.c
changeset 7719 31b5f9ff36ca
parent 7038 7f22b9ba218f
child 7857 6388f5229bb7
--- a/src/audio/bsd/SDL_bsdaudio.c	Thu Aug 29 08:27:25 2013 -0700
+++ b/src/audio/bsd/SDL_bsdaudio.c	Thu Aug 29 08:29:21 2013 -0700
@@ -214,10 +214,8 @@
 BSDAUDIO_CloseDevice(_THIS)
 {
     if (this->hidden != NULL) {
-        if (this->hidden->mixbuf != NULL) {
-            SDL_FreeAudioMem(this->hidden->mixbuf);
-            this->hidden->mixbuf = NULL;
-        }
+        SDL_FreeAudioMem(this->hidden->mixbuf);
+        this->hidden->mixbuf = NULL;
         if (this->hidden->audio_fd >= 0) {
             close(this->hidden->audio_fd);
             this->hidden->audio_fd = -1;