mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-10-15 22:35:59 +00:00
Christoph Mallon: Remove pointless if (x) before SDL_free(x)
This commit is contained in:
@@ -1335,15 +1335,9 @@ void
|
||||
SDL_SW_DestroyYUVTexture(SDL_SW_YUVTexture * swdata)
|
||||
{
|
||||
if (swdata) {
|
||||
if (swdata->pixels) {
|
||||
SDL_free(swdata->pixels);
|
||||
}
|
||||
if (swdata->colortab) {
|
||||
SDL_free(swdata->colortab);
|
||||
}
|
||||
if (swdata->rgb_2_pix) {
|
||||
SDL_free(swdata->rgb_2_pix);
|
||||
}
|
||||
SDL_free(swdata->pixels);
|
||||
SDL_free(swdata->colortab);
|
||||
SDL_free(swdata->rgb_2_pix);
|
||||
if (swdata->stretch) {
|
||||
SDL_FreeSurface(swdata->stretch);
|
||||
}
|
||||
|
Reference in New Issue
Block a user