dynamic memory allocation but NOT checking the result!)
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@223
7f0cb862-5218-0410-a997-
914c9d46530a
* Create a new freeglut timer hook structure
*/
timer = (SFG_Timer *)calloc( sizeof(SFG_Timer), 1 );
* Create a new freeglut timer hook structure
*/
timer = (SFG_Timer *)calloc( sizeof(SFG_Timer), 1 );
+ if (!timer)
+ fgError ("Fatal error: "
+ "Memory allocation failure in glutTimerFunc()\n");
/*
* Remember the callback address and timer hook's ID
/*
* Remember the callback address and timer hook's ID