From b0a3f02e1e910d3eab777d31bb957758f5c27f0d Mon Sep 17 00:00:00 2001 From: swenzel Date: Tue, 5 Dec 2023 15:51:46 +0100 Subject: [PATCH] TEPEMGEN: Prevent double deletion Fixes https://alice.its.cern.ch/jira/browse/O2-4469 --- TEPEMGEN/TEpEmGen.cxx | 1 + 1 file changed, 1 insertion(+) diff --git a/TEPEMGEN/TEpEmGen.cxx b/TEPEMGEN/TEpEmGen.cxx index 12c82c7..ce9c8b4 100644 --- a/TEPEMGEN/TEpEmGen.cxx +++ b/TEPEMGEN/TEpEmGen.cxx @@ -78,6 +78,7 @@ TEpEmGen::~TEpEmGen() // Destroys the object, deletes and disposes all TParticles currently on list. fParticles->Delete(); delete fParticles; + fParticles = nullptr; // to prevent double deletion with TGenerator destructor } //______________________________________________________________________________