Added better clean up of paramters on X display in GraphicsWindowX11:closeImplementation

This commit is contained in:
Robert Osfield
2007-02-08 11:30:57 +00:00
parent 10593edfd0
commit 34847e4135

View File

@@ -593,19 +593,25 @@ void GraphicsWindowX11::closeImplementation()
XFlush( _display );
XSync( _display,0 );
XCloseDisplay( _display );
}
_window = 0;
_parent = 0;
_glxContext = 0;
if(_visualInfo)
if (_visualInfo)
{
XFree(_visualInfo);
_visualInfo = 0;
}
if (_display)
{
XCloseDisplay( _display );
_display = 0;
}
_initialized = false;
_realized = false;
_valid = false;