From 63658f46fa8345ca092bfeabec2b27b0ebe06b8f Mon Sep 17 00:00:00 2001
From: Ludovic Hussonnois <ludovic.hussonnois@c-s.fr>
Date: Wed, 5 Apr 2017 17:08:14 +0200
Subject: [PATCH] ENH: Add a call to disconnect pipeline (RFC 85 review)

---
 .../AppClassification/include/otbTrainVectorBase.txx             | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Modules/Applications/AppClassification/include/otbTrainVectorBase.txx b/Modules/Applications/AppClassification/include/otbTrainVectorBase.txx
index 52263be4aa..9e91e70fc5 100644
--- a/Modules/Applications/AppClassification/include/otbTrainVectorBase.txx
+++ b/Modules/Applications/AppClassification/include/otbTrainVectorBase.txx
@@ -308,6 +308,7 @@ TrainVectorBase::ExtractSamplesWithLabel(std::string parameterName, std::string
 
     samplesWithLabel.listSample = shiftScaleFilter->GetOutput();
     samplesWithLabel.labeledListSample = target;
+    samplesWithLabel.listSample->DisconnectPipeline();
     }
 
   return samplesWithLabel;
-- 
GitLab