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:
parent
18bf7821a6
commit
1358592415
@ -490,11 +490,11 @@ void fgDestroyStructure( void )
|
|||||||
/*
|
/*
|
||||||
* Make sure all windows and menus have been deallocated
|
* 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 )
|
while( (menu = (SFG_Menu *)fgStructure.Menus.First) != NULL )
|
||||||
fgDestroyMenu( menu );
|
fgDestroyMenu( menu );
|
||||||
|
|
||||||
|
while( (window = (SFG_Window *)fgStructure.Windows.First) != NULL )
|
||||||
|
fgDestroyWindow( window, TRUE );
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Reference in New Issue
Block a user