From 251e79d7a8dd09c20957206711ccc9546e149bfc Mon Sep 17 00:00:00 2001 From: Gennady Pospelov <g.pospelov@fz-juelich.de> Date: Tue, 21 Apr 2015 10:55:21 +0200 Subject: [PATCH] Forgotten fix for ParameterPool leakage in Simulation. --- Core/Algorithms/src/Simulation.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Core/Algorithms/src/Simulation.cpp b/Core/Algorithms/src/Simulation.cpp index 7b5b108dd45..0f34eb1fb0d 100644 --- a/Core/Algorithms/src/Simulation.cpp +++ b/Core/Algorithms/src/Simulation.cpp @@ -158,7 +158,7 @@ void Simulation::runSimulation() total_polarized_intensity.copyShapeFrom(m_polarization_output); total_intensity.setAllTo(0.); total_polarized_intensity.setAllTo(Eigen::Matrix2d::Zero()); - ParameterPool *p_param_pool = createParameterTree(); + boost::scoped_ptr<ParameterPool > p_param_pool(createParameterTree()); for (size_t index=0; index < param_combinations; ++index) { double weight = m_distribution_handler.setParameterValues( p_param_pool, index); -- GitLab