Ticket #4783 (closed: fixed)

Opened 9 years ago

Last modified 5 years ago

Clear memory leaks in algorithm init methods

Reported by: Russell Taylor Owned by: Russell Taylor
Priority: major Milestone: Release 2.1
Component: Mantid Keywords:
Cc: Blocked By:
Blocking: Tester: Wenduo Zhou

Description

Just starting up MantidPlot shows up a good number of leaks occurring in Algorithm init() methods (which are all called, probably more than once, on startup).

Mainly this seems to be based on a lack of widespread knowledge that clone() only needs to be called on a validator if it's passed to more than property. Probably these should be shared pointers, but right now I'm just going to fix the leaks that show up.

Change History

comment:1 Changed 9 years ago by Russell Taylor

  • Status changed from new to accepted

comment:2 Changed 9 years ago by Russell Taylor

Clear memory leaks in algorithm's init() methods. Re #4783.

Changeset: d684dcc54a08723229f8918e8599731570f23f8e

comment:3 Changed 9 years ago by Russell Taylor

Clear leak of OrientedLattice in Sample. Re #4783.

Changeset: 9d112bab33a01c0cf681b5e192cac6d05dcb1112

comment:4 Changed 9 years ago by Russell Taylor

Clear remaining leaks in algorithm's init methods. Re #4783.

Changeset: 0232c81b04ed1fac9ce7681ada4c7efda2e02242

comment:5 Changed 9 years ago by Russell Taylor

  • Status changed from accepted to verify
  • Resolution set to fixed

To test, run "valgrind --leak-check=full" (or visual leak detector equivalent) on MantidPlot, closing the program as soon as it's completed startup, and search the output for anything coming from calling Algorithm::initialize().

comment:6 Changed 8 years ago by Wenduo Zhou

  • Status changed from verify to verifying
  • Tester set to Wenduo Zhou

comment:7 Changed 8 years ago by Wenduo Zhou

  • Status changed from verifying to closed

comment:8 Changed 5 years ago by Stuart Campbell

This ticket has been transferred to github issue 5630

Note: See TracTickets for help on using tickets.