Christoph Mallon: Remove pointless if (x) before SDL_free(x)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user