[PATCH] gdiplus/tests: Fix a font leak (Valgrind)
Vincent Povirk
madewokherd at gmail.com
Tue May 31 10:40:21 CDT 2016
Signed-off-by: Vincent Povirk <vincent at codeweavers.com>
On Mon, May 30, 2016 at 2:52 PM, Nikolay Sivov <nsivov at codeweavers.com> wrote:
> Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
> ---
> dlls/gdiplus/tests/font.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/dlls/gdiplus/tests/font.c b/dlls/gdiplus/tests/font.c
> index 39b539b..1b442cc 100644
> --- a/dlls/gdiplus/tests/font.c
> +++ b/dlls/gdiplus/tests/font.c
> @@ -781,6 +781,7 @@ static void test_font_substitution(void)
> expect(Ok, status);
> strcpy(fallback_font,lf.lfFaceName);
> trace("fallback font %s\n", fallback_font);
> + GdipDeleteFont(font);
>
> lstrcpyA(lf.lfFaceName, "ThisFontShouldNotExist");
> status = GdipCreateFontFromLogfontA(hdc, &lf, &font);
> --
> 2.8.1
>
>
>
More information about the wine-patches
mailing list