mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 19:48:20 +02:00
TypeDef cleanup fixes
This commit is contained in:
parent
3611846b7f
commit
31c89ab8e1
1 changed files with 3 additions and 0 deletions
|
@ -2347,6 +2347,7 @@ BfClosureType::BfClosureType(BfTypeInstance* srcDelegate, Val128 closureHash) :
|
|||
|
||||
BfClosureType::~BfClosureType()
|
||||
{
|
||||
mMethodInstanceGroups.Clear();
|
||||
if (mCreatedTypeDef)
|
||||
delete mTypeDef;
|
||||
for (auto directAllocNode : mDirectAllocNodes)
|
||||
|
@ -2425,6 +2426,7 @@ void BfClosureType::Finish()
|
|||
|
||||
BfDelegateType::~BfDelegateType()
|
||||
{
|
||||
mMethodInstanceGroups.Clear();
|
||||
delete mTypeDef;
|
||||
}
|
||||
|
||||
|
@ -2441,6 +2443,7 @@ BfTupleType::BfTupleType()
|
|||
|
||||
BfTupleType::~BfTupleType()
|
||||
{
|
||||
mMethodInstanceGroups.Clear();
|
||||
if (mCreatedTypeDef)
|
||||
delete mTypeDef;
|
||||
delete mSource;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue