diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-06-18 20:25:40 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-06-18 20:25:40 -0700 |
commit | ad01a1896200d9ab8eff3f8485a99e70e72530c4 (patch) | |
tree | e204d6cde21933e39981f5ddd09cef4eb4cd3018 /tests/sdl_image_prepare_data.c | |
parent | 3963031492acab163f8fa440aaf50661d954506b (diff) | |
parent | 9ee4ca4af663921dace9aa6bcdd206825adf145e (diff) |
Merge pull request #1304 from int3/sdl
Fix SDL color encoding
Diffstat (limited to 'tests/sdl_image_prepare_data.c')
-rw-r--r-- | tests/sdl_image_prepare_data.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/sdl_image_prepare_data.c b/tests/sdl_image_prepare_data.c index 87e33399..d45a2e60 100644 --- a/tests/sdl_image_prepare_data.c +++ b/tests/sdl_image_prepare_data.c @@ -1,4 +1,6 @@ #include <stdio.h> +#include <stdlib.h> +#include <string.h> #include <SDL/SDL.h> #include <SDL/SDL_image.h> #include <assert.h> @@ -43,7 +45,7 @@ void ready(void *arg, const char *fileName) { testImage(seenName); - free(seenName); // As the API docs say, we are responsible for freeing the 'fake' names we are given + free((void*)seenName); // As the API docs say, we are responsible for freeing the 'fake' names we are given SDL_Flip(screen); } |