From b12cd7a2828859d2a5c70a034123b957d199da95 Mon Sep 17 00:00:00 2001 From: Timo Kreuzer Date: Tue, 17 Mar 2009 21:29:17 +0000 Subject: [PATCH] Don't access the font structure after it was freed. Spotted by Stefan. svn path=/trunk/; revision=40079 --- reactos/drivers/video/font/ftfd/font.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/reactos/drivers/video/font/ftfd/font.c b/reactos/drivers/video/font/ftfd/font.c index 5b48df8bd5a..2fc8510b15d 100644 --- a/reactos/drivers/video/font/ftfd/font.c +++ b/reactos/drivers/video/font/ftfd/font.c @@ -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; }