I [John] added a feature to check for memory leaks under Windows.
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@297
7f0cb862-5218-0410-a997-
914c9d46530a
#include <math.h>
#include <time.h>
#include <GL/freeglut.h>
+#ifdef WIN32
+#include <crtdbg.h> // DUMP MEMORY LEAKS
+#endif
/************************************** Defined Constants ***************************************/
/* Enter the GLUT main loop */
glutMainLoop () ;
+#ifdef WIN32
+ _CrtDumpMemoryLeaks () ; // DUMP MEMORY LEAK INFORMATION
+#endif
+
return 0 ;
}