summaryrefslogtreecommitdiff
path: root/src/Persistent_cohomology/include
diff options
context:
space:
mode:
authorglisse <glisse@636b058d-ea47-450e-bf9e-a15bfbe3eedb>2015-09-28 17:00:07 +0000
committerglisse <glisse@636b058d-ea47-450e-bf9e-a15bfbe3eedb>2015-09-28 17:00:07 +0000
commit5dcc9dd4b14705b655c0129cf390c35a51b57dfe (patch)
tree7717f3a8f77763171c5c0975f869bac4f174da66 /src/Persistent_cohomology/include
parent4d234d3f77df6b91dccfbd2944aaf3ed1695a528 (diff)
Minor optimization: no need to return memory to the dying pool.
git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/gudhi/branches/pool@803 636b058d-ea47-450e-bf9e-a15bfbe3eedb Former-commit-id: 5ea7edddd00890a060d4a77302d239e9e8ef0c85
Diffstat (limited to 'src/Persistent_cohomology/include')
-rw-r--r--src/Persistent_cohomology/include/gudhi/Persistent_cohomology.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Persistent_cohomology/include/gudhi/Persistent_cohomology.h b/src/Persistent_cohomology/include/gudhi/Persistent_cohomology.h
index 390d47dd..5f399f1a 100644
--- a/src/Persistent_cohomology/include/gudhi/Persistent_cohomology.h
+++ b/src/Persistent_cohomology/include/gudhi/Persistent_cohomology.h
@@ -268,8 +268,8 @@ class Persistent_cohomology {
~Persistent_cohomology() {
// Clean the transversal lists
for (auto & transverse_ref : transverse_idx_) {
- // Release all the cells
- transverse_ref.second.row_->clear_and_dispose([&](Cell*p){cell_pool_.destroy(p);});
+ // Destruct all the cells
+ transverse_ref.second.row_->clear_and_dispose([&](Cell*p){p->~Cell();});
delete transverse_ref.second.row_;
}
}