mirror of
https://invent.kde.org/graphics/okular
synced 2024-08-24 18:35:37 +00:00
Fix leak
svn path=/branches/kpdf_experiments/kdegraphics/kpdf/; revision=373451
This commit is contained in:
parent
3b0cc84aaf
commit
48b80d82e4
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue