Skip to content

Commit

Permalink
Merge pull request #19460 from mantidproject/KernelTest_memory_leak
Browse files Browse the repository at this point in the history
Delete vector of pointers before exit
  • Loading branch information
SimonHeybrock committed May 2, 2017
2 parents da21aed + cb31c7e commit 07e9063
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Framework/Kernel/test/TimeSeriesPropertyTest.h
Original file line number Diff line number Diff line change
Expand Up @@ -959,9 +959,13 @@ class TimeSeriesPropertyTest : public CxxTest::TestSuite {
*/

// test
for (size_t i = 0; i < 10; ++i) {
TS_ASSERT_EQUALS(outputs[i]->size(), 2);
for (auto it : outputs) {
TS_ASSERT_EQUALS(it->size(), 2);
}

// cleanup
for (auto &it : outputs)
delete it;
}

//----------------------------------------------------------------------------
Expand Down

0 comments on commit 07e9063

Please sign in to comment.