Fixes PSP_DestroyTexture release of data (don't release the SDL_Texture pointer)

This commit is contained in:
Gabriel Jacobo 2013-04-23 16:54:52 -03:00
parent b1b1c1e2d1
commit 4b4bea7294

View file

@ -990,9 +990,9 @@ PSP_DestroyTexture(SDL_Renderer * renderer, SDL_Texture * texture)
if(psp_texture->data != 0) if(psp_texture->data != 0)
{ {
free(psp_texture->data); SDL_free(psp_texture->data);
} }
free(texture); SDL_free(psp_texture);
texture->driverdata = NULL; texture->driverdata = NULL;
} }