Commit a02131d6 authored by Pino Toscano's avatar Pino Toscano

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

svn path=/trunk/KDE/kdegraphics/okular/; revision=752760
parent 8f40bfdb
......@@ -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
......
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