src/render/SDL_render.c
changeset 7719 31b5f9ff36ca
parent 7563 c128ed448c30
child 7746 6a05d7352575
     1.1 --- a/src/render/SDL_render.c	Thu Aug 29 08:27:25 2013 -0700
     1.2 +++ b/src/render/SDL_render.c	Thu Aug 29 08:29:21 2013 -0700
     1.3 @@ -1712,9 +1712,7 @@
     1.4      if (texture->yuv) {
     1.5          SDL_SW_DestroyYUVTexture(texture->yuv);
     1.6      }
     1.7 -    if (texture->pixels) {
     1.8 -        SDL_free(texture->pixels);
     1.9 -    }
    1.10 +    SDL_free(texture->pixels);
    1.11  
    1.12      renderer->DestroyTexture(renderer, texture);
    1.13      SDL_free(texture);