Fixup: Fixup

This commit is contained in:
Camilla Löwy 2018-02-20 16:24:29 +01:00
parent e07f0c9b6b
commit c702cdd1c8

View File

@ -627,9 +627,9 @@ static GLFWbool initExtensions(void)
if (_glfw.x11.xss.handle)
{
_glfw.x11.xss.QueryExtension = (PFN_XScreenSaverQueryExtension)
dlsym(_glfw.x11.xss.handle, "XScreenSaverQueryExtension");
_glfw_dlsym(_glfw.x11.xss.handle, "XScreenSaverQueryExtension");
_glfw.x11.xss.Suspend = (PFN_XScreenSaverSuspend)
dlsym(_glfw.x11.xss.handle, "XScreenSaverSuspend");
_glfw_dlsym(_glfw.x11.xss.handle, "XScreenSaverSuspend");
if (XScreenSaverQueryExtension(_glfw.x11.display,
&_glfw.x11.xss.eventBase,
@ -1080,6 +1080,12 @@ void _glfwPlatformTerminate(void)
_glfw.x11.xinerama.handle = NULL;
}
if (_glfw.x11.xss.handle)
{
_glfw_dlclose(_glfw.x11.xss.handle);
_glfw.x11.xss.handle = NULL;
}
if (_glfw.x11.dbus.session)
{
dbus_connection_close(_glfw.x11.dbus.session);