Changed: Don't close a display already closed

This commit is contained in:
kervala 2016-12-06 20:24:21 +01:00
parent c6e4e1d15a
commit c70aa5143b

View file

@ -501,8 +501,11 @@ bool CDriverGL::unInit()
// restore default X errors handler
XSetErrorHandler(NULL);
XCloseDisplay(_dpy);
_dpy = NULL;
if (_dpy)
{
XCloseDisplay(_dpy);
_dpy = NULL;
}
#endif // NL_OS_UNIX