diff options
author | Ted Kremenek <kremenek@apple.com> | 2009-10-20 06:31:34 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2009-10-20 06:31:34 +0000 |
commit | 2e385f931992cad1fe63a4fba7f4a020819e4e52 (patch) | |
tree | e48eea1ff1651455b33980b7c2a5139d39247374 /clang/lib/Rewrite | |
parent | 9351e4f4b2afabe192b37a2f0d9f905a00c41a88 (diff) | |
download | bcm5719-llvm-2e385f931992cad1fe63a4fba7f4a020819e4e52.tar.gz bcm5719-llvm-2e385f931992cad1fe63a4fba7f4a020819e4e52.zip |
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).
llvm-svn: 84615
Diffstat (limited to 'clang/lib/Rewrite')
-rw-r--r-- | clang/lib/Rewrite/RewriteRope.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Rewrite/RewriteRope.cpp b/clang/lib/Rewrite/RewriteRope.cpp index 30bbcfafb53..fdb6fc385ba 100644 --- a/clang/lib/Rewrite/RewriteRope.cpp +++ b/clang/lib/Rewrite/RewriteRope.cpp @@ -154,6 +154,7 @@ namespace { ~RopePieceBTreeLeaf() { if (PrevLeaf || NextLeaf) removeFromLeafInOrder(); + clear(); } bool isFull() const { return NumPieces == 2*WidthFactor; } |