Daniel Lehman : opengl32/tests: Fix leak in opengl test (valgrind).
Module: wine Branch: master Commit: 55023fc0370611ac3c20c41c1639f0c441614c62 URL: http://source.winehq.org/git/wine.git/?a=commit;h=55023fc0370611ac3c20c41c16... Author: Daniel Lehman <dlehman25(a)gmail.com> Date: Mon Feb 6 21:03:24 2017 -0800 opengl32/tests: Fix leak in opengl test (valgrind). Signed-off-by: Daniel Lehman <dlehman25(a)gmail.com> Signed-off-by: Matteo Bruni <mbruni(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- 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); } }
participants (1)
-
Alexandre Julliard