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; }