From: kramm Date: Wed, 7 Dec 2005 19:41:05 +0000 (+0000) Subject: small logging changes X-Git-Tag: release-0-8-0~278 X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=commitdiff_plain;h=7c32d87338b5d303ac3e2273c933759f467df4a3 small logging changes --- diff --git a/pdf2swf/SWFOutputDev.cc b/pdf2swf/SWFOutputDev.cc index fd9cdc0..ca64cb6 100644 --- a/pdf2swf/SWFOutputDev.cc +++ b/pdf2swf/SWFOutputDev.cc @@ -1155,7 +1155,7 @@ int getGfxCharID(gfxfont_t*font, int charnr, char *charname, int u) int t; for(t=0;tnum_glyphs;t++) { if(font->glyphs[t].name && !strcmp(font->glyphs[t].name,uniname)) { - msg(" Char [%d,>%s<,%d] maps to %d\n", charnr, uniname, u, t); + msg(" Char [%d,%s,>%d(%s)<] maps to %d\n", charnr, charname, u, uniname, t); return t; } } @@ -1163,7 +1163,7 @@ int getGfxCharID(gfxfont_t*font, int charnr, char *charname, int u) we can find the capitalized version */ for(t=0;tnum_glyphs;t++) { if(font->glyphs[t].name && !strcasecmp(font->glyphs[t].name,uniname)) { - msg(" Char [%d,>>%s<<,%d] maps to %d\n", charnr, uniname, u, t); + msg(" Char [%d,%s,>>%d(%s)<<] maps to %d\n", charnr, charname, u, uniname, t); return t; } } @@ -2132,6 +2132,7 @@ void SWFOutputDev::updateFont(GfxState *state) if(fileName && del) unlinkfont(fileName); + if(fileName) free(fileName); free(fontid);