src/render/SDL_yuv_sw.c
changeset 7719 31b5f9ff36ca
parent 7678 286c42d7c5ed
child 7720 f9a649383362
     1.1 --- a/src/render/SDL_yuv_sw.c	Thu Aug 29 08:27:25 2013 -0700
     1.2 +++ b/src/render/SDL_yuv_sw.c	Thu Aug 29 08:29:21 2013 -0700
     1.3 @@ -1335,15 +1335,9 @@
     1.4  SDL_SW_DestroyYUVTexture(SDL_SW_YUVTexture * swdata)
     1.5  {
     1.6      if (swdata) {
     1.7 -        if (swdata->pixels) {
     1.8 -            SDL_free(swdata->pixels);
     1.9 -        }
    1.10 -        if (swdata->colortab) {
    1.11 -            SDL_free(swdata->colortab);
    1.12 -        }
    1.13 -        if (swdata->rgb_2_pix) {
    1.14 -            SDL_free(swdata->rgb_2_pix);
    1.15 -        }
    1.16 +        SDL_free(swdata->pixels);
    1.17 +        SDL_free(swdata->colortab);
    1.18 +        SDL_free(swdata->rgb_2_pix);
    1.19          if (swdata->stretch) {
    1.20              SDL_FreeSurface(swdata->stretch);
    1.21          }