plug memleak: destroy internal buffer

llvm-svn: 55632
This commit is contained in:
Nuno Lopes 2008-09-02 12:06:08 +00:00
parent 99341f2d9d
commit 114a582019
1 changed files with 4 additions and 1 deletions

View File

@ -37,7 +37,10 @@ public:
// Start out ready to flush.
OutBufStart = OutBufEnd = OutBufCur = 0;
}
virtual ~raw_ostream() {}
virtual ~raw_ostream() {
delete [] OutBufStart;
}
//===--------------------------------------------------------------------===//
// Configuration Interface