Fix Clipper2 memory leak
This commit is contained in:
parent
a9acb2e215
commit
f8d2bdbdf9
|
@ -311,7 +311,11 @@ namespace Clipper2Lib {
|
|||
|
||||
void Clear() override
|
||||
{
|
||||
for (const PolyPath64* child : childs_) delete child;
|
||||
for (PolyPath64* child : childs_)
|
||||
{
|
||||
child->Clear();
|
||||
delete child;
|
||||
}
|
||||
childs_.resize(0);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue