test/testautomation_clipboard.c
changeset 7719 31b5f9ff36ca
parent 7477 a73210626b97
child 7721 bdf8c2c84e14
     1.1 --- a/test/testautomation_clipboard.c	Thu Aug 29 08:27:25 2013 -0700
     1.2 +++ b/test/testautomation_clipboard.c	Thu Aug 29 08:29:21 2013 -0700
     1.3 @@ -41,7 +41,7 @@
     1.4      charResult = SDL_GetClipboardText();
     1.5      SDLTest_AssertPass("Call to SDL_GetClipboardText succeeded");
     1.6  
     1.7 -    if (charResult) SDL_free(charResult);
     1.8 +    SDL_free(charResult);
     1.9  
    1.10      return TEST_COMPLETED;
    1.11  }
    1.12 @@ -69,8 +69,8 @@
    1.13          textRef, text);
    1.14  
    1.15      /* Cleanup */
    1.16 -    if (textRef) SDL_free(textRef);
    1.17 -    if (text) SDL_free(text);
    1.18 +    SDL_free(textRef);
    1.19 +    SDL_free(text);
    1.20  
    1.21     return TEST_COMPLETED;
    1.22  }
    1.23 @@ -145,9 +145,9 @@
    1.24          textRef, charResult);
    1.25  
    1.26      /* Cleanup */
    1.27 -    if (textRef) SDL_free(textRef);
    1.28 -    if (text) SDL_free(text);
    1.29 -    if (charResult) SDL_free(charResult);
    1.30 +    SDL_free(textRef);
    1.31 +    SDL_free(text);
    1.32 +    SDL_free(charResult);
    1.33  
    1.34     return TEST_COMPLETED;
    1.35  }