Commit 83be722b authored by Jeff Muizelaar's avatar Jeff Muizelaar

2006-09-20 Jeff Muizelaar <jeff@infidigm.net>

	* poppler/TextOutputDev.cc: TextFontInfo stores a copy of a pointer
	to a GfxFont but does not increment the reference count. Fix the
	problem by calling incRefCnt and decRefCnt appropriately. Fixes #4649
parent 1cf60015
2006-09-20 Jeff Muizelaar <jeff@infidigm.net>
* poppler/TextOutputDev.cc: TextFontInfo stores a copy of a pointer
to a GfxFont but does not increment the reference count. Fix the
problem by calling incRefCnt and decRefCnt appropriately. Fixes #4649
2006-09-19 Kristian Høgsberg <krh@redhat.com>
* poppler/GlobalParams.cc: Add scanEncodingDirs() to automatically
......
......@@ -118,6 +118,8 @@
TextFontInfo::TextFontInfo(GfxState *state) {
gfxFont = state->getFont();
if (gfxFont)
gfxFont->incRefCnt();
#if TEXTOUT_WORD_LIST
fontName = (gfxFont && gfxFont->getOrigName())
? gfxFont->getOrigName()->copy()
......@@ -126,6 +128,8 @@ TextFontInfo::TextFontInfo(GfxState *state) {
}
TextFontInfo::~TextFontInfo() {
if (gfxFont)
gfxFont->decRefCnt();
#if TEXTOUT_WORD_LIST
if (fontName) {
delete fontName;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment