From d70507ad79a0efe0a5edb2afd94aef1d0e28fc5f Mon Sep 17 00:00:00 2001 From: Ray Speth Date: Thu, 24 May 2012 16:29:16 +0000 Subject: [PATCH] Fixed deletion of a bad pointer in CVodesIntegrator m_fdata was not initialized to 0, so if the integrator was deleted before initialize() was called, the destructor would attempt to delete it using the uninitialized value. --- src/numerics/CVodesIntegrator.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/numerics/CVodesIntegrator.cpp b/src/numerics/CVodesIntegrator.cpp index 3a5437293..5b963eff4 100644 --- a/src/numerics/CVodesIntegrator.cpp +++ b/src/numerics/CVodesIntegrator.cpp @@ -131,7 +131,9 @@ CVodesIntegrator::CVodesIntegrator() : m_abstolsens(1.0e-4), m_nabs(0), m_hmax(0.0), - m_maxsteps(20000), m_np(0), + m_maxsteps(20000), + m_fdata(0), + m_np(0), m_mupper(0), m_mlower(0) { //m_ropt.resize(OPT_SIZE,0.0);