[WIN32K]
authorPierre Schweitzer <pierre@reactos.org>
Sun, 2 Oct 2011 13:18:06 +0000 (13:18 +0000)
committerPierre Schweitzer <pierre@reactos.org>
Sun, 2 Oct 2011 13:18:06 +0000 (13:18 +0000)
Fix memory leak

svn path=/trunk/; revision=53926

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

index 889cab6..e908e58 100644 (file)
@@ -1366,6 +1366,7 @@ ftGdiGlyphCacheSet(
     if(FT_Bitmap_Convert(GlyphSlot->library, &BitmapGlyph->bitmap, &AlignedBitmap, 4))
     {
         DPRINT1("Conversion failed\n");
+        ExFreePoolWithTag(NewEntry, TAG_FONT);
         FT_Done_Glyph((FT_Glyph)BitmapGlyph);
         return NULL;
     }