mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-06-07 16:01:10 +00:00
Christoph Mallon: Remove pointless if (x) before SDL_free(x)
This commit is contained in:
parent
1d2c7796ae
commit
f79fc33a39
63 changed files with 157 additions and 349 deletions
|
@ -1712,9 +1712,7 @@ SDL_DestroyTexture(SDL_Texture * texture)
|
|||
if (texture->yuv) {
|
||||
SDL_SW_DestroyYUVTexture(texture->yuv);
|
||||
}
|
||||
if (texture->pixels) {
|
||||
SDL_free(texture->pixels);
|
||||
}
|
||||
SDL_free(texture->pixels);
|
||||
|
||||
renderer->DestroyTexture(renderer, texture);
|
||||
SDL_free(texture);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue