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
This commit is contained in:
parent
8753051db6
commit
c2707f3cc0
|
@ -79,7 +79,12 @@ public:
|
|||
~DRC_RTREE()
|
||||
{
|
||||
for( auto tree : m_tree )
|
||||
{
|
||||
for( auto el : *tree )
|
||||
delete el;
|
||||
|
||||
delete tree;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue