Fix for a deinitialization related crash.

git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@179 7f0cb862-5218-0410-a997-914c9d46530a
This commit is contained in:
cjp 2003-09-09 17:40:53 +00:00
parent 18bf7821a6
commit 1358592415

View File

@ -490,11 +490,11 @@ void fgDestroyStructure( void )
/*
* Make sure all windows and menus have been deallocated
*/
while( (window = (SFG_Window *)fgStructure.Windows.First) != NULL )
fgDestroyWindow( window, TRUE );
while( (menu = (SFG_Menu *)fgStructure.Menus.First) != NULL )
fgDestroyMenu( menu );
while( (window = (SFG_Window *)fgStructure.Windows.First) != NULL )
fgDestroyWindow( window, TRUE );
}
/*