Skip to content

Commit

Permalink
FlatObject::destroy() method mush be applied to nested FlatObjects
Browse files Browse the repository at this point in the history
to avoid crash at cloneFromObject on destroyed object.
  • Loading branch information
shahor02 committed Jan 14, 2024
1 parent 79a0fe0 commit 9086782
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions GPU/TPCFastTransformation/TPCFastTransform.h
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,12 @@ class TPCFastTransform : public FlatObject
/// Assignment operator: disabled to avoid ambiguity. Use cloneFromObject() instead
TPCFastTransform& operator=(const TPCFastTransform&) CON_DELETE;

inline void destroy()
{
mCorrection.destroy();
FlatObject::destroy();
}

/// Destructor
#if !defined(GPUCA_GPUCODE) && !defined(GPUCA_STANDALONE) && defined(GPUCA_O2_LIB)
~TPCFastTransform()
Expand Down

0 comments on commit 9086782

Please sign in to comment.