Skip to content
Snippets Groups Projects
Commit 5a9ab941 authored by Frank Winklmeier's avatar Frank Winklmeier
Browse files

Merge branch 'danglingRef.MuonTrackSteeringTools-20201217' into 'master'

MuonTrackSteeringTools: Fix dangling refs in MuPatCandidateTool.

See merge request atlas/athena!39263
parents e0d2174b 2e511234
No related branches found
No related tags found
No related merge requests found
......@@ -58,6 +58,13 @@ namespace Muon {
}
StatusCode MuPatCandidateTool::finalize() {
// Clean up all garbage now.
// If we leave it for the dtor, we may end up with dangling references
// to Surface objects that have already been deleted.
for (CacheEntry& ent : m_cache) {
ent.cleanUp();
}
return StatusCode::SUCCESS;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment