From 78ffba1ff2670be2cc5890673f07ca405c3ef589 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. --HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404086 --- 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);