Fixed SF bug #1204261: Mini space leak when creating an X11 window

(X11 text property values have to be freed after using them)


git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@614 7f0cb862-5218-0410-a997-914c9d46530a
This commit is contained in:
spanne 2005-05-19 06:51:03 +00:00
parent 83dcd8b899
commit cea3641a13

View File

@ -462,6 +462,7 @@ void fgOpenWindow( SFG_Window* window, const char* title,
&wmHints, &wmHints,
NULL NULL
); );
XFree( textProperty.value );
XSetWMProtocols( fgDisplay.Display, window->Window.Handle, XSetWMProtocols( fgDisplay.Display, window->Window.Handle,
&fgDisplay.DeleteWindow, 1 ); &fgDisplay.DeleteWindow, 1 );