From 82389f9efaffcbd67c1fecf742c55a7fdc3ec61c Mon Sep 17 00:00:00 2001 From: Pino Toscano Date: Mon, 26 Mar 2007 00:01:22 +0000 Subject: [PATCH] after constructing the text annotation, delete the selection as it's no more useful (and it isn't leaked) svn path=/trunk/playground/graphics/okular/; revision=646514 --- ui/pageviewannotator.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ui/pageviewannotator.cpp b/ui/pageviewannotator.cpp index 1953479cd..92bb0c3b0 100644 --- a/ui/pageviewannotator.cpp +++ b/ui/pageviewannotator.cpp @@ -547,6 +547,9 @@ class TextSelectorEngine : public AnnotatorEngine ann = ha; } + delete selection; + selection = 0; + // safety check if ( !ann ) return QList< Okular::Annotation* >();