Added closing of the _eventDisplay on failure of initializing the context properly.

This commit is contained in:
Robert Osfield
2011-05-30 09:26:24 +00:00
parent 4d09574ccd
commit 0201480582

View File

@@ -809,8 +809,17 @@ void GraphicsWindowX11::init()
if (_valid == false)
{
XCloseDisplay( _display );
_display = 0;
if (_display)
{
XCloseDisplay( _display );
_display = 0;
}
if (_eventDisplay)
{
XCloseDisplay( _eventDisplay );
_eventDisplay = 0;
}
}