Commit 66e53f958c84b73a0bf12fab9b51096efdbfdbfc

sammy 2008-05-02T07:21:57

* Fix a memory leak in ~FTExtrudeGlyph: only one of the three display lists was being freed.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/FTGlyph/FTExtrudeGlyph.cpp b/src/FTGlyph/FTExtrudeGlyph.cpp
index 3929213..563d30d 100644
--- a/src/FTGlyph/FTExtrudeGlyph.cpp
+++ b/src/FTGlyph/FTExtrudeGlyph.cpp
@@ -117,7 +117,7 @@ FTExtrudeGlyphImpl::~FTExtrudeGlyphImpl()
 {
     if(glList)
     {
-        glDeleteLists(glList, 1);
+        glDeleteLists(glList, 3);
     }
     else if(vectoriser)
     {