Fixes PSP_DestroyTexture release of data (don't release the SDL_Texture pointer)
authorGabriel Jacobo
Tue, 23 Apr 2013 16:54:52 -0300
changeset 7096640f553441e4
parent 7095 79ca4d26d4b3
child 7097 84bbd421d62f
Fixes PSP_DestroyTexture release of data (don't release the SDL_Texture pointer)
src/render/psp/SDL_render_psp.c
     1.1 --- a/src/render/psp/SDL_render_psp.c	Tue Apr 23 16:44:54 2013 -0300
     1.2 +++ b/src/render/psp/SDL_render_psp.c	Tue Apr 23 16:54:52 2013 -0300
     1.3 @@ -990,9 +990,9 @@
     1.4  
     1.5  	if(psp_texture->data != 0)
     1.6  	{
     1.7 -		free(psp_texture->data);
     1.8 +		SDL_free(psp_texture->data);
     1.9  	}
    1.10 -	free(texture);
    1.11 +	SDL_free(psp_texture);
    1.12  	texture->driverdata = NULL;
    1.13  }
    1.14