test/testautomation_render.c
changeset 7719 31b5f9ff36ca
parent 7191 75360622e65f
child 7720 f9a649383362
equal deleted inserted replaced
7718:213b9777e988 7719:31b5f9ff36ca
   993    /* Compare surface. */
   993    /* Compare surface. */
   994    result = SDLTest_CompareSurfaces( testSurface, referenceSurface, allowable_error );
   994    result = SDLTest_CompareSurfaces( testSurface, referenceSurface, allowable_error );
   995    SDLTest_AssertCheck(result == 0, "Validate result from SDLTest_CompareSurfaces, expected: 0, got: %i", result);
   995    SDLTest_AssertCheck(result == 0, "Validate result from SDLTest_CompareSurfaces, expected: 0, got: %i", result);
   996 
   996 
   997    /* Clean up. */
   997    /* Clean up. */
   998    if (pixels != NULL) {
   998    SDL_free(pixels);
   999        SDL_free(pixels);
       
  1000    }
       
  1001    if (testSurface != NULL) {
   999    if (testSurface != NULL) {
  1002        SDL_FreeSurface(testSurface);
  1000        SDL_FreeSurface(testSurface);
  1003    }
  1001    }
  1004 }
  1002 }
  1005 
  1003