src/audio/psp/SDL_pspaudio.c
changeset 10255 9530fc07da6c
parent 10058 d141e7945ddf
child 10256 620329de23d4
     1.1 --- a/src/audio/psp/SDL_pspaudio.c	Thu Aug 04 11:51:17 2016 -0400
     1.2 +++ b/src/audio/psp/SDL_pspaudio.c	Fri Aug 05 01:44:41 2016 -0400
     1.3 @@ -126,14 +126,11 @@
     1.4  {
     1.5      if (this->hidden->channel >= 0) {
     1.6          sceAudioChRelease(this->hidden->channel);
     1.7 -        this->hidden->channel = -1;
     1.8      }
     1.9 +    free(this->hidden->rawbuf);  /* this uses memalign(), not SDL_malloc(). */
    1.10 +    SDL_free(this->hidden);
    1.11 +}
    1.12  
    1.13 -    if (this->hidden->rawbuf != NULL) {
    1.14 -        free(this->hidden->rawbuf);
    1.15 -        this->hidden->rawbuf = NULL;
    1.16 -    }
    1.17 -}
    1.18  static void PSPAUD_ThreadInit(_THIS)
    1.19  {
    1.20      /* Increase the priority of this audio thread by 1 to put it
    1.21 @@ -151,7 +148,6 @@
    1.22  static int
    1.23  PSPAUD_Init(SDL_AudioDriverImpl * impl)
    1.24  {
    1.25 -
    1.26      /* Set the function pointers */
    1.27      impl->OpenDevice = PSPAUD_OpenDevice;
    1.28      impl->PlayDevice = PSPAUD_PlayDevice;