Update from John:
I [John] added a feature to check for memory leaks under Windows. git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@297 7f0cb862-5218-0410-a997-914c9d46530a
This commit is contained in:
parent
8df7ae3c29
commit
3a18a26d74
@ -33,6 +33,9 @@
|
|||||||
#include <math.h>
|
#include <math.h>
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
#include <GL/freeglut.h>
|
#include <GL/freeglut.h>
|
||||||
|
#ifdef WIN32
|
||||||
|
#include <crtdbg.h> // DUMP MEMORY LEAKS
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
/************************************** Defined Constants ***************************************/
|
/************************************** Defined Constants ***************************************/
|
||||||
@ -343,6 +346,10 @@ int main ( int argc, char *argv[] )
|
|||||||
/* Enter the GLUT main loop */
|
/* Enter the GLUT main loop */
|
||||||
glutMainLoop () ;
|
glutMainLoop () ;
|
||||||
|
|
||||||
|
#ifdef WIN32
|
||||||
|
_CrtDumpMemoryLeaks () ; // DUMP MEMORY LEAK INFORMATION
|
||||||
|
#endif
|
||||||
|
|
||||||
return 0 ;
|
return 0 ;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user