diff options
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); } |