Update from John: Removed the freeglut hack of decrementing the
[freeglut] / progs / demos / Lorenz / lorenz.c
index f422b94..61ae694 100644 (file)
@@ -33,6 +33,9 @@
 #include <math.h>
 #include <time.h>
 #include <GL/freeglut.h>
+#ifdef WIN32
+#include <crtdbg.h>  // DUMP MEMORY LEAKS
+#endif
 
 
 /************************************** Defined Constants ***************************************/
@@ -343,6 +346,10 @@ int main ( int argc, char *argv[] )
   /* Enter the GLUT main loop */
   glutMainLoop () ;
 
+#ifdef WIN32
+  _CrtDumpMemoryLeaks () ;  // DUMP MEMORY LEAK INFORMATION
+#endif
+
   return 0 ;
 }