diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-06-20 18:15:36 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-06-20 18:15:36 -0700 |
commit | c3ed656997ea4515d846debf45121af1bd174a51 (patch) | |
tree | de84436eba40aedf96ca8c091c743e0d7d79e965 /tests/sdl_image_prepare_data.c | |
parent | 0ad87244178badf26cd5c8e0ed88116e87026472 (diff) | |
parent | 97d19be7f46bb3b0862e575fc6e06abafca74df7 (diff) |
Merge branch 'incoming'
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); } |