From c77e2112c9397a8705cb9db2c967344969fb5e02 Mon Sep 17 00:00:00 2001 From: Mike Gorchak Date: Tue, 13 Oct 2009 20:16:23 +0000 Subject: [PATCH] Fixed memory allocation size. --- test/testgles.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/testgles.c b/test/testgles.c index c01b5c204..5c4321284 100644 --- a/test/testgles.c +++ b/test/testgles.c @@ -147,7 +147,7 @@ main(int argc, char *argv[]) quit(2); } - context = SDL_calloc(state->num_windows, sizeof(SDL_GLContext)); + context = SDL_calloc(state->num_windows, sizeof(context)); if (context == NULL) { fprintf(stderr, "Out of memory!\n"); quit(2);