Set m_xml to zero after deletion.
This commit is contained in:
parent
190298ea9c
commit
77568a91d4
1 changed files with 4 additions and 1 deletions
|
|
@ -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; }
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue