start working through memory bugs

This commit is contained in:
Lee Thomason
2014-12-17 10:41:34 -08:00
parent ee2c46928e
commit cd011bc1b7
3 changed files with 38 additions and 13 deletions

View File

@@ -1555,7 +1555,11 @@ public:
/**
Load an XML file from disk. You are responsible
for providing and closing the FILE*.
for providing and closing the FILE*.
NOTE: The file should be opened as binary ("rb")
not text in order for TinyXML-2 to correctly
do newline normalization.
Returns XML_NO_ERROR (0) on success, or
an errorID.
@@ -1665,11 +1669,7 @@ public:
Delete a node associated with this document.
It will be unlinked from the DOM.
*/
void DeleteNode( XMLNode* node ) {
TIXMLASSERT( node );
TIXMLASSERT( node->_parent );
node->_parent->DeleteChild( node );
}
void DeleteNode( XMLNode* node );
void SetError( XMLError error, const char* str1, const char* str2 );