Skip to content
Permalink
Browse files

Fixed bug 2989 - Memory loss in clipboard_testClipboardTextFunctions

  • Loading branch information
slouken committed May 26, 2015
1 parent 507157a commit d88b6738f02430a1fa1bf79d579e41ece8003cb5
Showing with 2 additions and 0 deletions.
  1. +2 −0 test/testautomation_clipboard.c
@@ -103,6 +103,7 @@ clipboard_testClipboardTextFunctions(void *arg)
intResult);
charResult = SDL_GetClipboardText();
SDLTest_AssertPass("Call to SDL_GetClipboardText succeeded");
SDL_free(charResult);
boolResult = SDL_HasClipboardText();
SDLTest_AssertPass("Call to SDL_HasClipboardText succeeded");
SDLTest_AssertCheck(
@@ -137,6 +138,7 @@ clipboard_testClipboardTextFunctions(void *arg)
boolResult == SDL_TRUE,
"Verify SDL_HasClipboardText returned SDL_TRUE, got %s",
(boolResult) ? "SDL_TRUE" : "SDL_FALSE");
SDL_free(charResult);
charResult = SDL_GetClipboardText();
SDLTest_AssertPass("Call to SDL_GetClipboardText succeeded");
SDLTest_AssertCheck(

0 comments on commit d88b673

Please sign in to comment.