Consistency asserts
diff --git a/tinyxml2.h b/tinyxml2.h
index af14205..e7ff2dd 100755
--- a/tinyxml2.h
+++ b/tinyxml2.h
@@ -281,14 +281,17 @@
     }

 

     int Capacity() const				{

+        TIXMLASSERT( _allocated >= INITIAL_SIZE );

         return _allocated;

     }

 

     const T* Mem() const				{

+        TIXMLASSERT( _mem );

         return _mem;

     }

 

     T* Mem()							{

+        TIXMLASSERT( _mem );

         return _mem;

     }