[poppler] poppler/ArthurOutputDev.cc
Pino Toscano
pino at kemper.freedesktop.org
Sun Apr 6 02:42:36 PDT 2008
poppler/ArthurOutputDev.cc | 5 +++++
1 file changed, 5 insertions(+)
New commits:
commit fc24500ddd9182f97d23c46eaafc6be79a6721eb
Author: Pino Toscano <pino at kde.org>
Date: Sun Apr 6 11:43:49 2008 +0200
propetly initialise a couple of members; leak less
diff --git a/poppler/ArthurOutputDev.cc b/poppler/ArthurOutputDev.cc
index ff5a77a..1c0728c 100644
--- a/poppler/ArthurOutputDev.cc
+++ b/poppler/ArthurOutputDev.cc
@@ -71,10 +71,13 @@ ArthurOutputDev::ArthurOutputDev(QPainter *painter):
{
m_currentBrush = QBrush(Qt::SolidPattern);
m_fontEngine = 0;
+ m_font = 0;
+ m_image = 0;
}
ArthurOutputDev::~ArthurOutputDev()
{
+ delete m_fontEngine;
}
void ArthurOutputDev::startDoc(XRef *xrefA) {
@@ -740,6 +743,8 @@ void ArthurOutputDev::drawImage(GfxState *state, Object *ref, Stream *str,
m_painter->setMatrix(matrix, true);
m_painter->drawImage( QPoint(0,0), *m_image );
+ delete m_image;
+ m_image = 0;
free (buffer);
delete imgStr;
More information about the poppler
mailing list