gdiplus: Fix use after free in GdipAddPathString.
This commit is contained in:
parent
02b68a0ac1
commit
3ca8204837
1 changed files with 1 additions and 1 deletions
|
@ -1141,7 +1141,6 @@ GpStatus WINGDIPAPI GdipAddPathString(GpPath* path, GDIPCONST WCHAR* string, INT
|
|||
}
|
||||
|
||||
get_log_fontW(font, graphics, &lfw);
|
||||
GdipDeleteGraphics(graphics);
|
||||
|
||||
hfont = CreateFontIndirectW(&lfw);
|
||||
if (!hfont)
|
||||
|
@ -1167,6 +1166,7 @@ GpStatus WINGDIPAPI GdipAddPathString(GpPath* path, GDIPCONST WCHAR* string, INT
|
|||
DeleteDC(dc);
|
||||
DeleteObject(hfont);
|
||||
GdipDeleteFont(font);
|
||||
GdipDeleteGraphics(graphics);
|
||||
|
||||
if (status != Ok) /* free backup */
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue