mirror of https://github.com/CGAL/cgal
Bugfix: properly clear scene and memory leak fix
This commit is contained in:
parent
f974433669
commit
a30163e1d5
|
|
@ -104,11 +104,12 @@ public:
|
|||
}
|
||||
|
||||
~Scene() {
|
||||
clear();
|
||||
delete m_pwsrec;
|
||||
}
|
||||
|
||||
void clear() {
|
||||
m_pwsrec->clear();
|
||||
delete m_pwsrec;
|
||||
m_pwsrec = new Optimal_transportation_reconstruction_kerneled_2();
|
||||
m_samples.clear();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue