aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-05-06 13:24:39 -0700
committerAlon Zakai <alonzakai@gmail.com>2013-05-06 13:35:33 -0700
commitbe0fb5cc46392c203c5c7885efdfe4f0cd579751 (patch)
treed69fa9d49db4d208e19c1f078835b0d71f0af35f /tests
parent39479d6ea74aabc297c52f65aefe09df2a8657b3 (diff)
auto-include malloc/free when SDL is used; fixes #1139
Diffstat (limited to 'tests')
-rw-r--r--tests/sdl_alloctext.c6
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)
{