mirror of
https://github.com/encounter/SDL.git
synced 2025-12-16 00:17:18 +00:00
Christoph Mallon: Remove pointless if (x) before SDL_free(x)
This commit is contained in:
@@ -988,10 +988,7 @@ PSP_DestroyTexture(SDL_Renderer * renderer, SDL_Texture * texture)
|
||||
if(psp_texture == 0)
|
||||
return;
|
||||
|
||||
if(psp_texture->data != 0)
|
||||
{
|
||||
SDL_free(psp_texture->data);
|
||||
}
|
||||
SDL_free(psp_texture->data);
|
||||
SDL_free(psp_texture);
|
||||
texture->driverdata = NULL;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user