Skip to content

Commit

Permalink
[System.Drawing.Common] In test, dispose of Metafile after Graphics
Browse files Browse the repository at this point in the history
Fixes dotnet#37838

Verified using libgdiplus built with
mono/libgdiplus#671
  • Loading branch information
lambdageek committed Oct 2, 2020
1 parent 957fdb9 commit 40044fc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -408,8 +408,8 @@ public void Measure()
RectangleF rect = new RectangleF(0, 0, size.Width, size.Height);
Region[] region = g.MeasureCharacterRanges(text, test_font, rect, sf);
Assert.Equal(2, region.Length);
mf.Dispose();
}
mf.Dispose();
}

[ConditionalFact(Helpers.IsDrawingSupported)]
Expand Down

0 comments on commit 40044fc

Please sign in to comment.