Don't access the font structure after it was freed. Spotted by Stefan.

svn path=/trunk/; revision=40079
This commit is contained in:
Timo Kreuzer 2009-03-17 21:29:17 +00:00
parent 8f4fd76b65
commit b12cd7a282

View file

@ -126,12 +126,12 @@ FtfdUnloadFontFile(
FT_Done_Face(pfile->aftface[i]);
}
/* Free the memory that was allocated for the font */
EngFreeMem(pfile);
/* Unmap the font file */
EngUnmapFontFileFD(pfile->iFile);
/* Free the memory that was allocated for the font */
EngFreeMem(pfile);
return TRUE;
}