one more small cleanup

git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@1263 7f0cb862-5218-0410-a997-914c9d46530a
This commit is contained in:
dcnieho 2012-04-22 16:32:29 +00:00
parent 98ca02122b
commit b5cfa418b6

View File

@ -1376,8 +1376,8 @@ static void fghCone( double base, double height, GLint slices, GLint stacks, GLb
* bunch for each slice.
*/
stackIdx = malloc(slices*(stacks+1)*sizeof(GLushort));
sliceIdx = malloc(slices*2 *sizeof(GLushort));
stackIdx = malloc(slices*stacks*sizeof(GLushort));
sliceIdx = malloc(slices*2 *sizeof(GLushort));
if (!(stackIdx) || !(sliceIdx))
{
free(stackIdx);