test/testshape.c
changeset 7720 f9a649383362
parent 7678 286c42d7c5ed
child 8102 c86987834681
     1.1 --- a/test/testshape.c	Thu Aug 29 08:29:21 2013 -0700
     1.2 +++ b/test/testshape.c	Thu Aug 29 08:29:51 2013 -0700
     1.3 @@ -90,8 +90,7 @@
     1.4          if(pictures[i].surface == NULL) {
     1.5              j = 0;
     1.6              for(j=0;j<num_pictures;j++)
     1.7 -                if(pictures[j].surface != NULL)
     1.8 -                    SDL_FreeSurface(pictures[j].surface);
     1.9 +                SDL_FreeSurface(pictures[j].surface);
    1.10              SDL_free(pictures);
    1.11              SDL_VideoQuit();
    1.12              SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "Could not load surface from named bitmap file.");