[PATCH] opengl32/tests: Fix leak in opengl test (valgrind)
Matteo Bruni
matteo.mystral at gmail.com
Tue Feb 7 09:52:05 CST 2017
2017-02-07 6:03 GMT+01:00 Daniel Lehman <dlehman25 at gmail.com>:
> 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
This looks right to me. FWIW:
Signed-off-by: Matteo Bruni <mbruni at codeweavers.com>
More information about the wine-patches
mailing list