Commit 436f578f authored by Albert Astals Cid's avatar Albert Astals Cid

* poppler/GfxState.cc:

        * poppler/GfxState.h: Fix memleak, patch by
                Carlos Garcia Campos <carlosgc@gnome.org>
parent 90651576
2006-05-13 Albert Astals Cid <aacid@kde.org>
* poppler/GfxState.cc:
* poppler/GfxState.h: Fix memleak, patch by
Carlos Garcia Campos <carlosgc@gnome.org>
2006-05-13 Albert Astals Cid <aacid@kde.org>
* qt4/src/poppler-document.cc: leak--
......
......@@ -4046,6 +4046,14 @@ void GfxState::setStrokePattern(GfxPattern *pattern) {
strokePattern = pattern;
}
void GfxState::setFont(GfxFont *fontA, double fontSizeA) {
if (font)
font->decRefCnt();
font = fontA;
fontSize = fontSizeA;
}
void GfxState::setLineDash(double *dash, int length, double start) {
if (lineDash)
gfree(lineDash);
......
......@@ -1127,8 +1127,7 @@ public:
void setLineJoin(int lineJoin1) { lineJoin = lineJoin1; }
void setLineCap(int lineCap1) { lineCap = lineCap1; }
void setMiterLimit(double limit) { miterLimit = limit; }
void setFont(GfxFont *fontA, double fontSizeA)
{ font = fontA; fontSize = fontSizeA; }
void setFont(GfxFont *fontA, double fontSizeA);
void setTextMat(double a, double b, double c,
double d, double e, double f)
{ textMat[0] = a; textMat[1] = b; textMat[2] = c;
......
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