start working through memory bugs
diff --git a/xmltest.cpp b/xmltest.cpp
index 18fa8c9..ebcd4dd 100644
--- a/xmltest.cpp
+++ b/xmltest.cpp
@@ -1334,10 +1334,10 @@
 

 	{

 		// Test that it doesn't crash.

-		const char* xml = "<?xml version=\"1.0\"?><root><sample><field0><1</field0><field1>2</field1></sample></root>";
-		XMLDocument doc;
-		doc.Parse(xml);
-		doc.PrintError();
+		const char* xml = "<?xml version=\"1.0\"?><root><sample><field0><1</field0><field1>2</field1></sample></root>";

+		XMLDocument doc;

+		doc.Parse(xml);

+		doc.PrintError();

 	}

 

 #if 1

@@ -1390,6 +1390,13 @@
             doc.Clear();

         }

     }

+    

+    {

+        // If this doesn't assert in DEBUG, all is well.

+        tinyxml2::XMLDocument doc;

+        tinyxml2::XMLElement *pRoot = doc.NewElement("Root");

+        doc.DeleteNode(pRoot);

+    }

 

 

 	// ----------- Performance tracking --------------