diff options
author | Thomas Henn <thomas.henn@igd.fraunhofer.de> | 2008-11-26 09:51:29 -0700 |
---|---|---|
committer | Brian Paul <brian.paul@tungstengraphics.com> | 2008-11-26 10:06:31 -0700 |
commit | e55703243320b543b0d29d662b5e535b2368b167 (patch) | |
tree | 45abe2340094437c0ed1b838932e6072ce97e3ce | |
parent | 8df136bec42d260e7367f7e384f0d40a3e712254 (diff) |
windows: fix visual object memleak
-rw-r--r-- | src/mesa/drivers/windows/gdi/wmesa.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/drivers/windows/gdi/wmesa.c b/src/mesa/drivers/windows/gdi/wmesa.c index 42432d6064..80746950c7 100644 --- a/src/mesa/drivers/windows/gdi/wmesa.c +++ b/src/mesa/drivers/windows/gdi/wmesa.c @@ -1505,6 +1505,9 @@ WMesaContext WMesaCreateContext(HDC hDC, ctx = &c->gl_ctx; _mesa_initialize_context(ctx, visual, NULL, &functions, (void *)c); + /* visual no longer needed - it was copied by _mesa_initialize_context() */ + _mesa_destroy_visual(visual); + _mesa_enable_sw_extensions(ctx); _mesa_enable_1_3_extensions(ctx); _mesa_enable_1_4_extensions(ctx); |