diff options
Diffstat (limited to 'plugins/Dbx_tree/src/BTree.h')
-rw-r--r-- | plugins/Dbx_tree/src/BTree.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/plugins/Dbx_tree/src/BTree.h b/plugins/Dbx_tree/src/BTree.h index 277f206b2b..f1d44ccd27 100644 --- a/plugins/Dbx_tree/src/BTree.h +++ b/plugins/Dbx_tree/src/BTree.h @@ -186,7 +186,7 @@ CBTree<TKey, SizeParam>::~CBTree() while (i != m_ManagedIterators.end())
{
i->second->m_Tree = NULL;
- i++;
+ ++i;
}
if (m_DestroyTree)
@@ -910,8 +910,7 @@ void CBTree<TKey, SizeParam>::DestroyTree() DeleteNode(node);
}
- if (m_Alloc)
- free(m_Alloc);
+ free(m_Alloc);
m_Alloc = NULL;
m_AllocCount = 0;
m_Count = 0;
|