Merge pull request #11 from OlivierSohn/master Fix a memory leak
diff --git a/src/FTGlyph/FTPixmapGlyph.cpp b/src/FTGlyph/FTPixmapGlyph.cpp
index 2d0e406..fee383c 100644
--- a/src/FTGlyph/FTPixmapGlyph.cpp
+++ b/src/FTGlyph/FTPixmapGlyph.cpp
@@ -54,6 +54,7 @@ FTGlyphImpl *FTPixmapGlyph::NewImpl(FT_GlyphSlot glyph)
FTPixmapGlyphImpl *Impl = new FTPixmapGlyphImpl(glyph);
if (Impl->destWidth && Impl->destHeight)
return Impl;
+ delete Impl;
return new FTBitmapGlyphImpl(glyph);
}