Skip to content

Commit b0a3f02

Browse files
committed
TEPEMGEN: Prevent double deletion
Fixes https://alice.its.cern.ch/jira/browse/O2-4469
1 parent 53ec5c4 commit b0a3f02

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

TEPEMGEN/TEpEmGen.cxx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ TEpEmGen::~TEpEmGen()
7878
// Destroys the object, deletes and disposes all TParticles currently on list.
7979
fParticles->Delete();
8080
delete fParticles;
81+
fParticles = nullptr; // to prevent double deletion with TGenerator destructor
8182
}
8283

8384
//______________________________________________________________________________

0 commit comments

Comments
 (0)