diff options
Diffstat (limited to 'tests/sdl_alloctext.c')
-rw-r--r-- | tests/sdl_alloctext.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/tests/sdl_alloctext.c b/tests/sdl_alloctext.c index 0ee75f07..3def2b28 100644 --- a/tests/sdl_alloctext.c +++ b/tests/sdl_alloctext.c @@ -1,9 +1,8 @@ #include <stdio.h> -#include <stdlib.h> #include <SDL.h> #include <SDL_ttf.h> -int main(int argc, char **argv) +int main() { int result = 0; @@ -12,9 +11,6 @@ int main(int argc, char **argv) TTF_Font *font = TTF_OpenFont("myfont.ttf", 40); - if (argc == 12) font = (TTF_Font*)malloc(1024); - if (argc % 3) free(font); - int i = 0; while (i < 200) { |