From 58c3980437a2e40f22a11b8d72dcf3f5596c9ad2 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Mon, 6 Jun 2016 16:50:59 -0500 Subject: [PATCH] Reorder operations. First clear all data before triggering the 'clear' signal in the triangulation, rather than putting the signal code somewhere in the middle. --- source/grid/tria.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/source/grid/tria.cc b/source/grid/tria.cc index a8de820411..4b76e7b8d5 100644 --- a/source/grid/tria.cc +++ b/source/grid/tria.cc @@ -9024,10 +9024,13 @@ Triangulation::~Triangulation () template void Triangulation::clear () { + // clear all content of the triangulation... clear_despite_subscriptions(); - signals.clear(); periodic_face_pairs_level_0.clear(); periodic_face_map.clear(); + + // ...and then notify listeners to it + signals.clear(); } -- 2.39.5