Fix memory leak in mixins
This commit is contained in:
parent
43031375f4
commit
b4c3d2331e
1 changed files with 5 additions and 0 deletions
|
|
@ -597,8 +597,13 @@ ZCCCompiler::~ZCCCompiler()
|
|||
{
|
||||
delete c;
|
||||
}
|
||||
for (auto m : Mixins)
|
||||
{
|
||||
delete m;
|
||||
}
|
||||
Structs.Clear();
|
||||
Classes.Clear();
|
||||
Mixins.Clear();
|
||||
}
|
||||
|
||||
//==========================================================================
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue