mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-10-17 07:16:00 +00:00
Christoph Mallon: Remove pointless if (x) before SDL_free(x)
This commit is contained in:
@@ -995,9 +995,7 @@ _compare(SDL_Surface *referenceSurface, int allowable_error)
|
||||
SDLTest_AssertCheck(result == 0, "Validate result from SDLTest_CompareSurfaces, expected: 0, got: %i", result);
|
||||
|
||||
/* Clean up. */
|
||||
if (pixels != NULL) {
|
||||
SDL_free(pixels);
|
||||
}
|
||||
SDL_free(pixels);
|
||||
if (testSurface != NULL) {
|
||||
SDL_FreeSurface(testSurface);
|
||||
}
|
||||
|
Reference in New Issue
Block a user