src/audio/emscripten/SDL_emscriptenaudio.c
changeset 10255 9530fc07da6c
parent 10238 6fa358b97f4b
child 10257 f17581d00c26
     1.1 --- a/src/audio/emscripten/SDL_emscriptenaudio.c	Thu Aug 04 11:51:17 2016 -0400
     1.2 +++ b/src/audio/emscripten/SDL_emscriptenaudio.c	Fri Aug 05 01:44:41 2016 -0400
     1.3 @@ -136,16 +136,8 @@
     1.4  static void
     1.5  Emscripten_CloseDevice(_THIS)
     1.6  {
     1.7 -    if (this->hidden != NULL) {
     1.8 -        if (this->hidden->mixbuf != NULL) {
     1.9 -            /* Clean up the audio buffer */
    1.10 -            SDL_free(this->hidden->mixbuf);
    1.11 -            this->hidden->mixbuf = NULL;
    1.12 -        }
    1.13 -
    1.14 -        SDL_free(this->hidden);
    1.15 -        this->hidden = NULL;
    1.16 -    }
    1.17 +    SDL_free(this->hidden->mixbuf);
    1.18 +    SDL_free(this->hidden);
    1.19  }
    1.20  
    1.21  static int