[PATCH] opengl32/tests: Fix leak in opengl test (valgrind)
Daniel Lehman
dlehman25 at gmail.com
Mon Feb 6 23:03:24 CST 2017
fixes https://bugs.winehq.org/show_bug.cgi?id=36320
Signed-off-by: Daniel Lehman <dlehman25 at gmail.com>
---
dlls/opengl32/tests/opengl.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/dlls/opengl32/tests/opengl.c b/dlls/opengl32/tests/opengl.c
index 7552d44..0593465 100644
--- a/dlls/opengl32/tests/opengl.c
+++ b/dlls/opengl32/tests/opengl.c
@@ -670,6 +670,9 @@ static void test_bitmap_rendering( BOOL use_dib )
glGetIntegerv( GL_VIEWPORT, viewport );
ok( viewport[0] == 0 && viewport[1] == 0 && viewport[2] == 12 && viewport[3] == 12,
"wrong viewport %d,%d,%d,%d\n", viewport[0], viewport[1], viewport[2], viewport[3] );
+
+ wglDeleteContext(hglrc2);
+ wglDeleteContext(hglrc);
}
}
--
2.7.4
More information about the wine-patches
mailing list