Bugfix: properly clear scene and memory leak fix

This commit is contained in:
Simon Giraudot 2016-07-20 10:08:33 +02:00
parent f974433669
commit a30163e1d5
1 changed files with 3 additions and 2 deletions

View File

@ -104,11 +104,12 @@ public:
} }
~Scene() { ~Scene() {
clear(); delete m_pwsrec;
} }
void clear() { void clear() {
m_pwsrec->clear(); delete m_pwsrec;
m_pwsrec = new Optimal_transportation_reconstruction_kerneled_2();
m_samples.clear(); m_samples.clear();
} }