From: Richard Rauch Date: Tue, 4 Nov 2003 15:53:49 +0000 (+0000) Subject: Update from John: X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=commitdiff_plain;h=54add48e2dbafba808ac7a1b4f12549f42667dce;p=freeglut Update from John: 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 --- diff --git a/progs/demos/Lorenz/lorenz.c b/progs/demos/Lorenz/lorenz.c index f422b94..61ae694 100644 --- a/progs/demos/Lorenz/lorenz.c +++ b/progs/demos/Lorenz/lorenz.c @@ -33,6 +33,9 @@ #include #include #include +#ifdef WIN32 +#include // 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 ; }