From a1ac552cade8549ff9ac4052c504eaac40df375d Mon Sep 17 00:00:00 2001 From: bangerth Date: Fri, 3 Jun 2011 12:40:53 +0000 Subject: [PATCH] Also disconnect from the triangulation when we disconnect from the cell. git-svn-id: https://svn.dealii.org/trunk@23785 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/source/fe/fe_values.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/deal.II/source/fe/fe_values.cc b/deal.II/source/fe/fe_values.cc index fc38ad5f80..6b83ad9d54 100644 --- a/deal.II/source/fe/fe_values.cc +++ b/deal.II/source/fe/fe_values.cc @@ -3246,6 +3246,11 @@ FEValuesBase< dim, spacedim >::invalidate_present_cell () // if there is no present cell, then we shouldn't be // connected via a signal to a triangulation Assert (present_cell.get() != 0, ExcInternalError()); + + // so delete the present cell and + // disconnect from the signal we have with + // it + tria_listener.disconnect (); present_cell.reset (); } -- 2.39.5