X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Ffreeglut_window.c;h=5255bb265818728766a05ce6c54a6dfb9e111fdb;hb=55a15f705871de4fbfd40ce35d5c72f2f674bc59;hp=811f329322e78d96ecafb8d5d40b5d08091a3952;hpb=9807c5fdb2f20f098c7046786908a7f3ce1dc2d4;p=freeglut diff --git a/src/freeglut_window.c b/src/freeglut_window.c index 811f329..5255bb2 100644 --- a/src/freeglut_window.c +++ b/src/freeglut_window.c @@ -462,6 +462,7 @@ void fgOpenWindow( SFG_Window* window, const char* title, &wmHints, NULL ); + XFree( textProperty.value ); XSetWMProtocols( fgDisplay.Display, window->Window.Handle, &fgDisplay.DeleteWindow, 1 ); @@ -659,6 +660,12 @@ void fgCloseWindow( SFG_Window* window ) */ int FGAPIENTRY glutCreateWindow( const char* title ) { + /* XXX GLUT does not exit; it simply calls "glutInit" quietly if the + * XXX application has not already done so. The "freeglut" community + * XXX decided not to go this route (freeglut-developer e-mail from + * XXX Steve Baker, 12/16/04, 4:22 PM CST, "Re: [Freeglut-developer] + * XXX Desired 'freeglut' behaviour when there is no current window" + */ FREEGLUT_EXIT_IF_NOT_INITIALISED ( "glutCreateWindow" ); return fgCreateWindow( NULL, title, fgState.Position.X, fgState.Position.Y,