Call 'clear()' in ~RopePieceBTreeLeaf(), decrementing the reference

counts of the bufffers referened by the RopePieces in
RopePieceBTreeLeaf.  This (I believe) corrently fixes the leak I meant
to fix in r84601 (which ended up causing an overrelease).


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@84615 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Ted Kremenek 2009-10-20 06:31:34 +00:00
Родитель 6cd219879f
Коммит 90556e369d
1 изменённых файлов: 1 добавлений и 0 удалений

Просмотреть файл

@ -154,6 +154,7 @@ namespace {
~RopePieceBTreeLeaf() {
if (PrevLeaf || NextLeaf)
removeFromLeafInOrder();
clear();
}
bool isFull() const { return NumPieces == 2*WidthFactor; }