diff --git a/tinyxml2.h b/tinyxml2.h index e6a0ced..a372b41 100755 --- a/tinyxml2.h +++ b/tinyxml2.h @@ -341,8 +341,8 @@ public: void Clear() { // Delete the blocks. while( !_blockPtrs.Empty()) { - Block* b = _blockPtrs.Pop(); - delete b; + Block* lastBlock = _blockPtrs.Pop(); + delete lastBlock; } _root = 0; _currentAllocs = 0;