mirror of
https://github.com/reactos/reactos.git
synced 2025-04-27 17:10:22 +00:00
Don't access the font structure after it was freed. Spotted by Stefan.
svn path=/trunk/; revision=40079
This commit is contained in:
parent
8f4fd76b65
commit
b12cd7a282
1 changed files with 3 additions and 3 deletions
|
@ -126,12 +126,12 @@ FtfdUnloadFontFile(
|
||||||
FT_Done_Face(pfile->aftface[i]);
|
FT_Done_Face(pfile->aftface[i]);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Free the memory that was allocated for the font */
|
|
||||||
EngFreeMem(pfile);
|
|
||||||
|
|
||||||
/* Unmap the font file */
|
/* Unmap the font file */
|
||||||
EngUnmapFontFileFD(pfile->iFile);
|
EngUnmapFontFileFD(pfile->iFile);
|
||||||
|
|
||||||
|
/* Free the memory that was allocated for the font */
|
||||||
|
EngFreeMem(pfile);
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue