Author: tkreuzer
Date: Wed Mar 18 00:29:17 2009
New Revision: 40079
URL:
http://svn.reactos.org/svn/reactos?rev=40079&view=rev
Log:
Don't access the font structure after it was freed. Spotted by Stefan.
Modified:
trunk/reactos/drivers/video/font/ftfd/font.c
Modified: trunk/reactos/drivers/video/font/ftfd/font.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/video/font/ftfd/fo…
==============================================================================
--- trunk/reactos/drivers/video/font/ftfd/font.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/video/font/ftfd/font.c [iso-8859-1] Wed Mar 18 00:29:17 2009
@@ -126,11 +126,11 @@
FT_Done_Face(pfile->aftface[i]);
}
+ /* Unmap the font file */
+ EngUnmapFontFileFD(pfile->iFile);
+
/* Free the memory that was allocated for the font */
EngFreeMem(pfile);
-
- /* Unmap the font file */
- EngUnmapFontFileFD(pfile->iFile);
return TRUE;
}