Fix window class not being unregistered

The helper window kept the window class from being unregistered.

Fixes #704.
This commit is contained in:
Camilla Berglund 2016-02-11 16:41:39 +01:00
parent 386b60396f
commit f7228bb562

View File

@ -387,6 +387,9 @@ int _glfwPlatformInit(void)
void _glfwPlatformTerminate(void) void _glfwPlatformTerminate(void)
{ {
if (_glfw.win32.helperWindow)
DestroyWindow(_glfw.win32.helperWindow);
_glfwUnregisterWindowClassWin32(); _glfwUnregisterWindowClassWin32();
// Restore previous foreground lock timeout system setting // Restore previous foreground lock timeout system setting
@ -405,9 +408,6 @@ void _glfwPlatformTerminate(void)
_glfwTerminateJoysticksWin32(); _glfwTerminateJoysticksWin32();
_glfwTerminateThreadLocalStorageWin32(); _glfwTerminateThreadLocalStorageWin32();
if (_glfw.win32.helperWindow)
DestroyWindow(_glfw.win32.helperWindow);
freeLibraries(); freeLibraries();
} }