From f0a6ec4870e69b0e08a779972d95ae089374f6c5 Mon Sep 17 00:00:00 2001 From: Brian Fiete Date: Sun, 20 Sep 2020 23:01:15 -0700 Subject: [PATCH] Properly rebuild operatorInfo table --- IDEHelper/Compiler/BfContext.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/IDEHelper/Compiler/BfContext.cpp b/IDEHelper/Compiler/BfContext.cpp index e5410c7d..35698a74 100644 --- a/IDEHelper/Compiler/BfContext.cpp +++ b/IDEHelper/Compiler/BfContext.cpp @@ -1041,6 +1041,9 @@ void BfContext::RebuildType(BfType* type, bool deleteOnDemandTypes, bool rebuild typeInst->mStaticSearchMap.Clear(); typeInst->mInterfaces.Clear(); typeInst->mInterfaceMethodTable.Clear(); + for (auto operatorInfo : typeInst->mOperatorInfo) + delete operatorInfo; + typeInst->mOperatorInfo.Clear(); typeInst->mMethodInstanceGroups.Clear(); typeInst->mFieldInstances.Clear(); for (auto methodInst : typeInst->mInternalMethods)