diff --git a/ui/annotationmodel.cpp b/ui/annotationmodel.cpp index a03f217ab..c720a6813 100644 --- a/ui/annotationmodel.cpp +++ b/ui/annotationmodel.cpp @@ -171,6 +171,7 @@ void AnnotationModelPrivate::notifyPageChanged( int page, int flags ) if ( !found ) { q->beginRemoveRows( indexForItem( annItem ), i - 1, i - 1 ); + delete annItem->children.at( i - 1 ); annItem->children.removeAt( i - 1 ); q->endRemoveRows(); }