Skip to content
Snippets Groups Projects
Commit c89332d9 authored by Scott Snyder's avatar Scott Snyder Committed by Adam Edward Barton
Browse files

MuonHoughPatternTools: Avoid use-after-free error.

A MuonLayerHough::Maximum object has a pointer to a MuonLayerHough object.
The latter lives in a temporary State object.
The Maximum objects, however, can end up being entered in a vector
and recorded in SG.  In such a case, the State objects can then be deleted.
leaving dangling pointers in the Maximum objects.
This has not been observed to cause crashes; instead, it just occasionally
gives wrong results.
parent b91d2063
No related branches found
No related tags found
Loading
Showing
with 17 additions and 10 deletions
Loading
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