gdiplus/tests: Fix a memory leak (Valgrind).

Signed-off-by: Sven Baars <sven.wine@gmail.com>
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Sven Baars 2019-01-22 17:57:45 +01:00 committed by Alexandre Julliard
parent aab7fcd393
commit a6d9fe0b0f

View file

@ -2519,6 +2519,9 @@ static void test_drawimage(void)
check_emfplus(hemf, draw_image_bitmap_records, "draw image bitmap");
stat = GdipDisposeImage((GpImage*)metafile);
expect(Ok, stat);
/* test drawing metafile */
stat = GdipRecordMetafile(hdc, EmfTypeEmfPlusOnly, &frame, MetafileFrameUnitPixel, description, &metafile);
expect(Ok, stat);