From 49a72751ed04b66ba1803ef7c574057194e8b1ce Mon Sep 17 00:00:00 2001 From: fayjf Date: Mon, 9 Jan 2012 04:35:20 +0000 Subject: [PATCH] Adding further comments to the removal of the "atexit" call from the Windows build, per e-mail from Diederick Niehorster dated 1/8/12 at 10:06 PM. git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@973 7f0cb862-5218-0410-a997-914c9d46530a --- freeglut/freeglut/src/freeglut_init.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/freeglut/freeglut/src/freeglut_init.c b/freeglut/freeglut/src/freeglut_init.c index f59a456..5b5771b 100644 --- a/freeglut/freeglut/src/freeglut_init.c +++ b/freeglut/freeglut/src/freeglut_init.c @@ -392,7 +392,10 @@ static void fghInitialize( const char* displayName ) fgState.Initialised = GL_TRUE; /* Avoid registering atexit callback on Win32 as it results in an access - * violation due to calling into a module which has been unloaded. */ + * violation due to calling into a module which has been unloaded. + * Any cleanup isn't needed on Windows anyway, the OS takes care of it.c + * see: http://blogs.msdn.com/b/oldnewthing/archive/2012/01/05/10253268.aspx + */ #if ( TARGET_HOST_MS_WINDOWS == 0 ) atexit(fgDeinitialize); #endif