fixed a mem leak
authorMatthias Kramm <kramm@quiss.org>
Thu, 22 Jan 2009 00:49:13 +0000 (16:49 -0800)
committerMatthias Kramm <kramm@quiss.org>
Thu, 22 Jan 2009 00:49:13 +0000 (16:49 -0800)
lib/pdf/InfoOutputDev.cc

index 8a00d98..75644bc 100644 (file)
@@ -88,6 +88,8 @@ FontInfo::~FontInfo()
        }
     }
     free(glyphs);glyphs=0;
        }
     }
     free(glyphs);glyphs=0;
+    if(this->gfxfont)
+        gfxfont_free(this->gfxfont);
 }
 
 gfxfont_t* createGfxFont(FontInfo*src)
 }
 
 gfxfont_t* createGfxFont(FontInfo*src)