[ros-diffs] [tkreuzer] 40079: Don't access the font structure after it was freed. Spotted by Stefan.
tkreuzer at svn.reactos.org
tkreuzer at svn.reactos.org
Tue Mar 17 22:29:18 CET 2009
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/font.c?rev=40079&r1=40078&r2=40079&view=diff
==============================================================================
--- 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;
}
More information about the Ros-diffs
mailing list