test/testautomation_clipboard.c
changeset 9617 062bfde7330a
parent 7721 bdf8c2c84e14
child 10782 1de6d4633ee6
     1.1 --- a/test/testautomation_clipboard.c	Mon May 25 16:22:09 2015 -0700
     1.2 +++ b/test/testautomation_clipboard.c	Tue May 26 06:16:43 2015 -0700
     1.3 @@ -103,6 +103,7 @@
     1.4              intResult);
     1.5          charResult = SDL_GetClipboardText();
     1.6          SDLTest_AssertPass("Call to SDL_GetClipboardText succeeded");
     1.7 +        SDL_free(charResult);
     1.8          boolResult = SDL_HasClipboardText();
     1.9          SDLTest_AssertPass("Call to SDL_HasClipboardText succeeded");
    1.10          SDLTest_AssertCheck(
    1.11 @@ -137,6 +138,7 @@
    1.12          boolResult == SDL_TRUE,
    1.13          "Verify SDL_HasClipboardText returned SDL_TRUE, got %s",
    1.14          (boolResult) ? "SDL_TRUE" : "SDL_FALSE");
    1.15 +    SDL_free(charResult);
    1.16      charResult = SDL_GetClipboardText();
    1.17      SDLTest_AssertPass("Call to SDL_GetClipboardText succeeded");
    1.18      SDLTest_AssertCheck(