Added closing of the _eventDisplay on failure of initializing the context properly.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user