Commit 4d72a787c5ef04d7ac4e132cbdffa4aec7870c83

henry 2001-09-14T00:42:22

The freetype glyph is now disposed of correctly after initialsation

diff --git a/src/FTPolyGlyph.cpp b/src/FTPolyGlyph.cpp
index bc486ec..3800b53 100644
--- a/src/FTPolyGlyph.cpp
+++ b/src/FTPolyGlyph.cpp
@@ -85,6 +85,9 @@ FTPolyGlyph::FTPolyGlyph( FT_Glyph glyph, unsigned int gi)
 		return;
 
 	Tesselate();
+
+	// discard glyph image (bitmap or not)
+	FT_Done_Glyph( glyph); // Why does this have to be HERE
 }
 
 
diff --git a/src/FTVectorGlyph.cpp b/src/FTVectorGlyph.cpp
index 2e9613a..1aea823 100755
--- a/src/FTVectorGlyph.cpp
+++ b/src/FTVectorGlyph.cpp
@@ -16,7 +16,9 @@ FTVectorGlyph::FTVectorGlyph( FT_Glyph glyph, unsigned int gi)
 	glList(0)
 {
 	if( ft_glyph_format_outline != glyph->format)
-	{ return;}
+	{
+		return;
+	}
 
 	vectoriser = new FTVectoriser( glyph);
 	
@@ -56,6 +58,8 @@ FTVectorGlyph::FTVectorGlyph( FT_Glyph glyph, unsigned int gi)
 		}
 	glEndList();
 
+	// discard glyph image (bitmap or not)
+	FT_Done_Glyph( glyph); // Why does this have to be HERE
 }