From a02131d6a90223949b20d5402f5de3fb02a8c97d Mon Sep 17 00:00:00 2001 From: Pino Toscano Date: Tue, 25 Dec 2007 14:21:49 +0000 Subject: [PATCH] do not leak the text selection when stopping the construction of a text highlight annotation svn path=/trunk/KDE/kdegraphics/okular/; revision=752760 --- ui/pageviewannotator.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ui/pageviewannotator.cpp b/ui/pageviewannotator.cpp index e9fd32867..ece1fb904 100644 --- a/ui/pageviewannotator.cpp +++ b/ui/pageviewannotator.cpp @@ -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