Ticket #214 (closed: invalid)
Instrument components (e.g. detectors) memory leaks
Reported by: | Russell Taylor | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | Iteration 20 |
Component: | Keywords: | ||
Cc: | Blocked By: | ||
Blocking: | Tester: |
Description
I'm pretty sure that the Detector objects (and also the source and sample) that are contained in an Instrument object never get deleted anywhere, meaning there's a not insignificant memory leak going on. Admittedly valgrind doesn't spot this, but I think it must be missing it. The obvious solution is to make them shared pointers.
Change History
Note: See
TracTickets for help on using
tickets.
I was wrong! Forgot about the base classes of Instrument - turns out that the CompAssembly destructor does the deletion.