| 1622 | |
| 1623 | |
| 1624 | XMLDocument::~XMLDocument() |
| 1625 | { |
| 1626 | DeleteChildren(); |
| 1627 | delete [] _charBuffer; |
| 1628 | |
| 1629 | #if 0 |
| 1630 | _textPool.Trace( "text" ); |
| 1631 | _elementPool.Trace( "element" ); |
| 1632 | _commentPool.Trace( "comment" ); |
| 1633 | _attributePool.Trace( "attribute" ); |
| 1634 | #endif |
| 1635 | |
| 1636 | #ifdef DEBUG |
| 1637 | if ( Error() == false ) { |
| 1638 | TIXMLASSERT( _elementPool.CurrentAllocs() == _elementPool.Untracked() ); |
| 1639 | TIXMLASSERT( _attributePool.CurrentAllocs() == _attributePool.Untracked() ); |
| 1640 | TIXMLASSERT( _textPool.CurrentAllocs() == _textPool.Untracked() ); |
| 1641 | TIXMLASSERT( _commentPool.CurrentAllocs() == _commentPool.Untracked() ); |
| 1642 | } |
| 1643 | #endif |
| 1644 | } |
| 1645 | |
| 1646 | |
| 1647 | void XMLDocument::Clear() |
nothing calls this directly
no test coverage detected