diff --git a/source/framework/core/src/TRestRun.cxx b/source/framework/core/src/TRestRun.cxx index af011ab61..b6596ac3d 100644 --- a/source/framework/core/src/TRestRun.cxx +++ b/source/framework/core/src/TRestRun.cxx @@ -1184,7 +1184,8 @@ void TRestRun::CloseFile() { } } } - + delete fInputEvent; + fInputEvent = nullptr; if (fOutputFile != nullptr) { fOutputFile->Write(0, TObject::kOverwrite); fOutputFile->Close();