mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 18:15:11 +00:00
[FONT][WIN32SS] Fix a memory leak
This commit is contained in:
parent
1f13b95e5b
commit
2e44e5ce54
1 changed files with 15 additions and 1 deletions
|
@ -6050,8 +6050,12 @@ GreExtTextOutW(
|
|||
if ( !HSourceGlyph )
|
||||
{
|
||||
DPRINT1("WARNING: EngCreateBitmap() failed!\n");
|
||||
// FT_Done_Glyph(realglyph);
|
||||
bResult = FALSE;
|
||||
if (EmuBold || EmuItalic)
|
||||
{
|
||||
FT_Done_Glyph(realglyph);
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
SourceGlyphSurf = EngLockSurface((HSURF)HSourceGlyph);
|
||||
|
@ -6060,6 +6064,11 @@ GreExtTextOutW(
|
|||
EngDeleteSurface((HSURF)HSourceGlyph);
|
||||
DPRINT1("WARNING: EngLockSurface() failed!\n");
|
||||
bResult = FALSE;
|
||||
if (EmuBold || EmuItalic)
|
||||
{
|
||||
FT_Done_Glyph(realglyph);
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
|
@ -6108,6 +6117,11 @@ GreExtTextOutW(
|
|||
|
||||
if (DoBreak)
|
||||
{
|
||||
if (EmuBold || EmuItalic)
|
||||
{
|
||||
FT_Done_Glyph(realglyph);
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue