src/audio/arts/SDL_artsaudio.c
changeset 7719 31b5f9ff36ca
parent 7038 7f22b9ba218f
child 7857 6388f5229bb7
equal deleted inserted replaced
7718:213b9777e988 7719:31b5f9ff36ca
   202 
   202 
   203 static void
   203 static void
   204 ARTS_CloseDevice(_THIS)
   204 ARTS_CloseDevice(_THIS)
   205 {
   205 {
   206     if (this->hidden != NULL) {
   206     if (this->hidden != NULL) {
   207         if (this->hidden->mixbuf != NULL) {
   207         SDL_FreeAudioMem(this->hidden->mixbuf);
   208             SDL_FreeAudioMem(this->hidden->mixbuf);
   208         this->hidden->mixbuf = NULL;
   209             this->hidden->mixbuf = NULL;
       
   210         }
       
   211         if (this->hidden->stream) {
   209         if (this->hidden->stream) {
   212             SDL_NAME(arts_close_stream) (this->hidden->stream);
   210             SDL_NAME(arts_close_stream) (this->hidden->stream);
   213             this->hidden->stream = 0;
   211             this->hidden->stream = 0;
   214         }
   212         }
   215         SDL_NAME(arts_free) ();
   213         SDL_NAME(arts_free) ();