From a59d1a233be3c280f3ffad7672ce5fbb9df47ce5 Mon Sep 17 00:00:00 2001 From: Harry Moffat Date: Wed, 6 Aug 2003 18:15:34 +0000 Subject: [PATCH] Fixed GRI30.h. The id was wrong and caused a test problem to fail. --- include/GRI30.h | 2 +- include/IdealGasMix.h | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/include/GRI30.h b/include/GRI30.h index a87945cd0..14d7faaf2 100644 --- a/include/GRI30.h +++ b/include/GRI30.h @@ -23,7 +23,7 @@ namespace Cantera { m_r = new XML_Node("-"); m_r->build(fin); - m_ok = buildSolutionFromXML(*m_r, "gri30_hw", "phase", this, this); + m_ok = buildSolutionFromXML(*m_r, "gri30", "phase", this, this); if (!m_ok) throw CanteraError("GRI30", "buildSolutionFromXML returned false"); } diff --git a/include/IdealGasMix.h b/include/IdealGasMix.h index 949a8bf5b..d7ce7e75c 100644 --- a/include/IdealGasMix.h +++ b/include/IdealGasMix.h @@ -34,7 +34,9 @@ namespace Cantera { m_ok = buildSolutionFromXML(root, id, "phase", this, this); } - virtual ~IdealGasMix() {} + virtual ~IdealGasMix() { + delete m_r; + } bool operator!() { return !m_ok;} bool ready() { return m_ok; }