Fix large memory leak in DRC
All elements get effective shapes, many of which get triangulated. This
memory needs to be freed when destroying the tree
(cherry picked from commit c2707f3cc0
)
This commit is contained in:
parent
16e802aff4
commit
c01e2dcfec
|
@ -79,8 +79,13 @@ public:
|
||||||
~DRC_RTREE()
|
~DRC_RTREE()
|
||||||
{
|
{
|
||||||
for( auto tree : m_tree )
|
for( auto tree : m_tree )
|
||||||
|
{
|
||||||
|
for( auto el : *tree )
|
||||||
|
delete el;
|
||||||
|
|
||||||
delete tree;
|
delete tree;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Insert an item into the tree on a particular layer with an optional worst clearance.
|
* Insert an item into the tree on a particular layer with an optional worst clearance.
|
||||||
|
|
Loading…
Reference in New Issue