Commit a6d9fe0b authored by Sven Baars's avatar Sven Baars Committed by Alexandre Julliard

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

parent aab7fcd3
...@@ -2519,6 +2519,9 @@ static void test_drawimage(void) ...@@ -2519,6 +2519,9 @@ static void test_drawimage(void)
check_emfplus(hemf, draw_image_bitmap_records, "draw image bitmap"); check_emfplus(hemf, draw_image_bitmap_records, "draw image bitmap");
stat = GdipDisposeImage((GpImage*)metafile);
expect(Ok, stat);
/* test drawing metafile */ /* test drawing metafile */
stat = GdipRecordMetafile(hdc, EmfTypeEmfPlusOnly, &frame, MetafileFrameUnitPixel, description, &metafile); stat = GdipRecordMetafile(hdc, EmfTypeEmfPlusOnly, &frame, MetafileFrameUnitPixel, description, &metafile);
expect(Ok, stat); expect(Ok, stat);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment