wgl: Fix an extra break statement.

This would have leaked our TLS indices on process exit.

Fixes #32
macos/v1.5.9
Eric Anholt 10 years ago
parent 363d57a9de
commit 135f7bf104
  1. 1
      src/dispatch_wgl.c

@ -130,7 +130,6 @@ DllMain(HINSTANCE dll, DWORD reason, LPVOID reserved)
data = TlsGetValue(wgl_tls_index);
LocalFree(data);
break;
if (reason == DLL_PROCESS_DETACH) {
TlsFree(gl_tls_index);

Loading…
Cancel
Save