Skip to content

Commit 3bee3f7

Browse files
committed
ITS: GPU: reverse destruction order to fix crash
Signed-off-by: Felix Schlepper <felix.schlepper@cern.ch>
1 parent 5b0d25d commit 3bee3f7

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

GPU/GPUTracking/Global/GPUChainITS.cxx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,7 @@ class GPUFrameworkExternalAllocator final : public o2::its::ExternalAllocator
4545
};
4646
} // namespace o2::its
4747

48-
GPUChainITS::~GPUChainITS()
49-
{
50-
mITSTrackerTraits.reset();
51-
mITSVertexerTraits.reset();
52-
}
48+
GPUChainITS::~GPUChainITS() {}
5349

5450
GPUChainITS::GPUChainITS(GPUReconstruction* rec) : GPUChain(rec) {}
5551

GPU/GPUTracking/Global/GPUChainITS.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,10 @@ class GPUChainITS final : public GPUChain
5050

5151
protected:
5252
GPUChainITS(GPUReconstruction* rec);
53+
std::unique_ptr<o2::its::GPUFrameworkExternalAllocator> mFrameworkAllocator;
54+
std::unique_ptr<o2::its::TimeFrame<7>> mITSTimeFrame;
5355
std::unique_ptr<o2::its::TrackerTraits<7>> mITSTrackerTraits;
5456
std::unique_ptr<o2::its::VertexerTraits<7>> mITSVertexerTraits;
55-
std::unique_ptr<o2::its::TimeFrame<7>> mITSTimeFrame;
56-
std::unique_ptr<o2::its::GPUFrameworkExternalAllocator> mFrameworkAllocator;
5757
};
5858
} // namespace o2::gpu
5959

0 commit comments

Comments
 (0)