Daniel Lehman : opengl32/tests: Fix leak in opengl test (valgrind).

Alexandre Julliard julliard at winehq.org
Tue Feb 7 16:02:29 CST 2017


Module: wine
Branch: master
Commit: 55023fc0370611ac3c20c41c1639f0c441614c62
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=55023fc0370611ac3c20c41c1639f0c441614c62

Author: Daniel Lehman <dlehman25 at 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 at gmail.com>
Signed-off-by: Matteo Bruni <mbruni at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at 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);
         }
     }
 




More information about the wine-cvs mailing list