gdiplus: Fix gdi handles leak in GdipMeasureCharacterRanges.
Signed-off-by: Piotr Caban <piotr@codeweavers.com> Signed-off-by: Vincent Povirk <vincent@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
ead3d068f9
commit
c74d909e3b
|
@ -5373,7 +5373,13 @@ GpStatus WINGDIPAPI GdipMeasureCharacterRanges(GpGraphics* graphics,
|
||||||
{
|
{
|
||||||
stat = GdipSetEmpty(regions[i]);
|
stat = GdipSetEmpty(regions[i]);
|
||||||
if (stat != Ok)
|
if (stat != Ok)
|
||||||
|
{
|
||||||
|
SelectObject(hdc, oldfont);
|
||||||
|
DeleteObject(gdifont);
|
||||||
|
if (temp_hdc)
|
||||||
|
DeleteDC(temp_hdc);
|
||||||
return stat;
|
return stat;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
args.regions = regions;
|
args.regions = regions;
|
||||||
|
|
Loading…
Reference in New Issue