Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Fixes PSP_DestroyTexture release of data (don't release the SDL_Textu…
Browse files Browse the repository at this point in the history
…re pointer)
  • Loading branch information
gabomdq committed Apr 23, 2013
1 parent 0b01a69 commit 6c5f798
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/render/psp/SDL_render_psp.c
Expand Up @@ -990,9 +990,9 @@ PSP_DestroyTexture(SDL_Renderer * renderer, SDL_Texture * texture)

if(psp_texture->data != 0)
{
free(psp_texture->data);
SDL_free(psp_texture->data);
}
free(texture);
SDL_free(psp_texture);
texture->driverdata = NULL;
}

Expand Down

0 comments on commit 6c5f798

Please sign in to comment.