From: bangerth Date: Fri, 3 Jun 2011 12:40:53 +0000 (+0000) Subject: Also disconnect from the triangulation when we disconnect from the cell. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a1ac552cade8549ff9ac4052c504eaac40df375d;p=dealii-svn.git 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 --- 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 (); }