From: Christopher John Purnell Date: Tue, 9 Sep 2003 17:40:53 +0000 (+0000) Subject: Fix for a deinitialization related crash. X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=commitdiff_plain;ds=inline;h=a230f0b0d77084e2ab2152094c97ff1edd323874;p=freeglut Fix for a deinitialization related crash. git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@179 7f0cb862-5218-0410-a997-914c9d46530a --- diff --git a/src/freeglut_structure.c b/src/freeglut_structure.c index 454aebf..9c515c8 100644 --- a/src/freeglut_structure.c +++ b/src/freeglut_structure.c @@ -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 ); } /*