Changes in directory llvm/include/llvm/ADT:
BitVector.h updated: 1.17 -> 1.18 --- Log message: Add a dtor to fix leaks from all clients of BitVector. --- Diffs of the changes: (+4 -0) BitVector.h | 4 ++++ 1 files changed, 4 insertions(+) Index: llvm/include/llvm/ADT/BitVector.h diff -u llvm/include/llvm/ADT/BitVector.h:1.17 llvm/include/llvm/ADT/BitVector.h:1.18 --- llvm/include/llvm/ADT/BitVector.h:1.17 Thu Mar 1 20:31:37 2007 +++ llvm/include/llvm/ADT/BitVector.h Mon Mar 19 21:10:56 2007 @@ -86,6 +86,10 @@ Bits = new BitWord[Capacity]; std::copy(RHS.Bits, &RHS.Bits[Capacity], Bits); } + + ~BitVector() { + delete[] Bits; + } /// size - Returns the number of bits in this bitvector. unsigned size() const { return Size; } _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits