summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2015-01-10 11:18:50 +1300
committerEric Anholt <eric@anholt.net>2015-01-10 11:18:50 +1300
commit135f7bf1043ca2a48d88d920fd46f3fe0097f359 (patch)
tree3e40d90b76584521f0384b3d5fa7dc44d5cd5b95
parent363d57a9de7d9241264590c35638705f14022daa (diff)
downloadlibepoxy-135f7bf1043ca2a48d88d920fd46f3fe0097f359.tar.gz
wgl: Fix an extra break statement.
This would have leaked our TLS indices on process exit. Fixes #32
-rw-r--r--src/dispatch_wgl.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/dispatch_wgl.c b/src/dispatch_wgl.c
index 5b3a8ef..2bc5fc1 100644
--- a/src/dispatch_wgl.c
+++ b/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);