Commit 48b80d82 authored by Albert Astals Cid's avatar Albert Astals Cid
Browse files

Fix leak

svn path=/branches/kpdf_experiments/kdegraphics/kpdf/; revision=373451
parent 3b0cc84a
......@@ -138,7 +138,7 @@ Part::Part(QWidget *parentWidget, const char *widgetName,
connect(m_pageView, SIGNAL( rightClick(const KPDFPage *, const QPoint &) ), this, SLOT( slotShowMenu(const KPDFPage *, const QPoint &) ));
// add document observers
m_document->addObserver( this );
m_document->addObserver( this );
m_document->addObserver( m_thumbnailList );
m_document->addObserver( m_pageView );
m_document->addObserver( tocFrame );
......
......@@ -121,6 +121,7 @@ bool KPDFPage::hasText( const QString & text, bool strictCase, bool fromTop )
GString * orig = m_text->getText( m_sLeft, m_sTop, m_sRight, m_sBottom );
found = !strcmp( text.latin1(), orig->getCString() );
}
gfree(u);
return found;
}
......
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