diff --git a/Code/FeatureExtraction/otbSimplifyPathListFilter.txx b/Code/FeatureExtraction/otbSimplifyPathListFilter.txx index fe3e7085149ff46c8b9c8aa3d9b43ef1c29a5c42..859989d44bbe52a10cfe847db14602195d3022be 100644 --- a/Code/FeatureExtraction/otbSimplifyPathListFilter.txx +++ b/Code/FeatureExtraction/otbSimplifyPathListFilter.txx @@ -84,6 +84,9 @@ namespace otb // input/output wiring PathListConstPointerType inputPtr = this->GetInput(); PathListPointerType outputPtr = this->GetOutput(); + + // Reset the output list in case of multiple updates + outputPtr->Clear(); // path iterator typedef typedef typename PathListType::ConstIterator PathIteratorType;