From 7729f1e0a37a8d8ce3156d08f6f849c463b38571 Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Thu, 4 Jun 2020 22:40:46 -0400 Subject: [PATCH] Avoid use-after-scope when calling MappinQCache::initialize multiply --- source/fe/mapping_q_cache.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/source/fe/mapping_q_cache.cc b/source/fe/mapping_q_cache.cc index 8af4eb2b07..96271efab4 100644 --- a/source/fe/mapping_q_cache.cc +++ b/source/fe/mapping_q_cache.cc @@ -94,6 +94,7 @@ MappingQCache::initialize( const typename Triangulation::cell_iterator &)> &compute_points_on_cell) { + clear_signal.disconnect(); clear_signal = triangulation.signals.any_change.connect( [&]() -> void { this->support_point_cache.reset(); }); -- 2.39.5