From: Daniel Arndt Date: Fri, 5 Jun 2020 02:40:46 +0000 (-0400) Subject: Avoid use-after-scope when calling MappinQCache::initialize multiply X-Git-Tag: v9.3.0-rc1~1486^2~1 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7729f1e0a37a8d8ce3156d08f6f849c463b38571;p=dealii.git Avoid use-after-scope when calling MappinQCache::initialize multiply --- 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(); });