From 0cfb83782c7acaba8979dbf2e2112b669703a327 Mon Sep 17 00:00:00 2001 From: glisse Date: Sat, 25 Apr 2015 09:37:40 +0000 Subject: Don't skip destructors even if the type is currently POD. git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/gudhi/trunk@574 636b058d-ea47-450e-bf9e-a15bfbe3eedb Former-commit-id: ba20755d2b52257f02ae4880a619f7bcc2ac1b14 --- src/Persistent_cohomology/include/gudhi/Persistent_cohomology.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/Persistent_cohomology/include') diff --git a/src/Persistent_cohomology/include/gudhi/Persistent_cohomology.h b/src/Persistent_cohomology/include/gudhi/Persistent_cohomology.h index 3606754a..b0d68f09 100644 --- a/src/Persistent_cohomology/include/gudhi/Persistent_cohomology.h +++ b/src/Persistent_cohomology/include/gudhi/Persistent_cohomology.h @@ -582,7 +582,7 @@ class Persistent_cohomology { if (curr_col->col_.empty()) { // If the column is null ds_repr_[curr_col->class_key_] = NULL; - column_pool_.free(curr_col); // delete curr_col; + column_pool_.destroy(curr_col); // delete curr_col; } else { // Find whether the column obtained is already in the CAM result_insert_cam = cam_.insert(*curr_col); @@ -599,7 +599,7 @@ class Persistent_cohomology { Simplex_key key_tmp = dsets_.find_set(curr_col->class_key_); ds_repr_[key_tmp] = &(*(result_insert_cam.first)); result_insert_cam.first->class_key_ = key_tmp; - column_pool_.free(curr_col); // delete curr_col; + column_pool_.destroy(curr_col); // delete curr_col; } } } else { -- cgit v1.2.3