[WIN32K]
authorKamil Hornicek <kamil.hornicek@reactos.org>
Sun, 12 Feb 2012 14:40:25 +0000 (14:40 +0000)
committerKamil Hornicek <kamil.hornicek@reactos.org>
Sun, 12 Feb 2012 14:40:25 +0000 (14:40 +0000)
Fix a potential memory leak. Spotted by Samuel Serapion.

svn path=/trunk/; revision=55562

reactos/subsystems/win32/win32k/objects/freetype.c

index 0d33f48..bee889d 100644 (file)
@@ -1349,6 +1349,7 @@ ftGdiGlyphCacheSet(
     error = FT_Glyph_To_Bitmap(&GlyphCopy, RenderMode, 0, 1);
     if (error)
     {
+        FT_Done_Glyph(GlyphCopy);
         DPRINT1("Failure rendering glyph.\n");
         return NULL;
     };