Enable dump of debug heap memory leaks
diff --git a/xmltest.cpp b/xmltest.cpp
index 56b6c82..c5dd135 100644
--- a/xmltest.cpp
+++ b/xmltest.cpp
@@ -279,6 +279,8 @@
 {

 	#if defined( _MSC_VER ) && defined( DEBUG )

 		_CrtMemCheckpoint( &startMemState );

+		// Enable MS Visual C++ debug heap memory leaks dump on exit

+		_CrtSetDbgFlag(_CrtSetDbgFlag(_CRTDBG_REPORT_FLAG) | _CRTDBG_LEAK_CHECK_DF);

 	#endif

 

 	#if defined(_MSC_VER) || defined(MINGW32) || defined(__MINGW32__)