Plug leak. The DenseMaps of CXXRecordLayoutInfo weren't freed.

llvm-svn: 112006
This commit is contained in:
Argyrios Kyrtzidis 2010-08-25 00:32:19 +00:00
parent 3c6cd17c8a
commit 96dbfa2e65
1 changed files with 3 additions and 1 deletions

View File

@ -19,8 +19,10 @@ using namespace clang;
void ASTRecordLayout::Destroy(ASTContext &Ctx) {
if (FieldOffsets)
Ctx.Deallocate(FieldOffsets);
if (CXXInfo)
if (CXXInfo) {
Ctx.Deallocate(CXXInfo);
CXXInfo->~CXXRecordLayoutInfo();
}
this->~ASTRecordLayout();
Ctx.Deallocate(this);
}