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
remotes/origin/KDE/4.0
Pino Toscano 19 years ago
parent 229f3cf1de
commit 82389f9efa
  1. 3
      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* >();

Loading…
Cancel
Save