Commit 413e8420 authored by Daniel Hynds's avatar Daniel Hynds
Browse files

fixed memory leak with tree deletion

Former-commit-id: c5f22fd04c31ccf2258b4c59e6cca052edea5787
parent 9aa889ef
......@@ -18,8 +18,14 @@ class KDTree : public TestBeamObject {
// Constructors and destructors
virtual ~KDTree(){}
timeKdtree = NULL;
positionKdtree = NULL;
delete timeKdtree;
delete positionKdtree;
// Build a tree sorted by cluster times
void buildTimeTree(Clusters inputClusters){
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment