Ticket #214 (closed: invalid)

Opened 12 years ago

Last modified 5 years ago

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

comment:1 Changed 12 years ago by Russell Taylor

  • Status changed from new to closed
  • Resolution set to invalid

I was wrong! Forgot about the base classes of Instrument - turns out that the CompAssembly destructor does the deletion.

comment:2 Changed 7 years ago by Nick Draper

  • Milestone changed from Unassigned to Iteration 20

comment:3 Changed 5 years ago by Stuart Campbell

This ticket has been transferred to github issue 1062

Note: See TracTickets for help on using tickets.