do not leak the text selection when stopping the construction of a text highlight annotation

svn path=/trunk/KDE/kdegraphics/okular/; revision=752760
This commit is contained in:
Pino Toscano 2007-12-25 14:21:49 +00:00
parent 8f40bfdb21
commit a02131d6a9

View file

@ -435,6 +435,11 @@ class TextSelectorEngine : public AnnotatorEngine
// parse engine specific attributes
}
~TextSelectorEngine()
{
delete selection;
}
QRect event( EventType type, Button button, double nX, double nY, double xScale, double yScale, const Okular::Page * /*page*/ )
{
// only proceed if pressing left button