MicrosoftVTableContext: Don't leak VPtrInfos. Found by LSan, PR19522.

llvm-svn: 207138
This commit is contained in:
Nico Weber 2014-04-24 19:52:12 +00:00
parent 655af097a1
commit d19e6a7e54
1 changed files with 2 additions and 0 deletions

View File

@ -3274,6 +3274,8 @@ static bool rebucketPaths(VPtrInfoVector &Paths) {
}
MicrosoftVTableContext::~MicrosoftVTableContext() {
for (auto &P : VFPtrLocations)
llvm::DeleteContainerPointers(*P.second);
llvm::DeleteContainerSeconds(VFPtrLocations);
llvm::DeleteContainerSeconds(VFTableLayouts);
llvm::DeleteContainerSeconds(VBaseInfo);