Changed: Don't close a display already closed

--HG--
branch : develop
feature/pipeline-tools
kervala 8 years ago
parent 363dfb9a3c
commit fff0b5ce5b

@ -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

Loading…
Cancel
Save