diff --git a/tinyxml2.h b/tinyxml2.h index 68de845..c800504 100755 --- a/tinyxml2.h +++ b/tinyxml2.h @@ -253,14 +253,17 @@ public: } int Capacity() const { + TIXMLASSERT( _allocated >= INITIAL_SIZE ); return _allocated; } const T* Mem() const { + TIXMLASSERT( _mem ); return _mem; } T* Mem() { + TIXMLASSERT( _mem ); return _mem; }