Set m_xml to zero after deletion.

This commit is contained in:
Harry Moffat 2004-06-28 23:51:30 +00:00
parent 190298ea9c
commit 77568a91d4

View file

@ -46,7 +46,10 @@ namespace Cantera {
m_xml(new XML_Node("phase")), m_id("<phase>") {}
/// Destructor.
virtual ~Phase(){ delete m_xml; }
virtual ~Phase(){
delete m_xml;
m_xml = 0;
}
XML_Node& xml() { return *m_xml; }
string id() const { return m_id; }