File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed
Generators/include/Generators Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -46,11 +46,13 @@ namespace eventgen
4646// main purpose is to init a FairPrimGen given some (Sim)Config
4747struct GeneratorFactory {
4848 static void setPrimaryGenerator (o2::conf::SimConfig const &, FairPrimaryGenerator*);
49- // Make destructor to delete all the pointers
50- ~GeneratorFactory () {
49+ // Make destructor to delete all the pointers
50+ ~GeneratorFactory ()
51+ {
5152 cleanup ();
5253 }
53- static void cleanup () {
54+ static void cleanup ()
55+ {
5456 for (auto & gen : mBoxGenPtr ) {
5557 delete gen;
5658 }
Original file line number Diff line number Diff line change @@ -60,8 +60,8 @@ class GeneratorService
6060{
6161
6262 public:
63-
64- ~GeneratorService () {
63+ ~GeneratorService ()
64+ {
6565 o2::eventgen::GeneratorFactory::cleanup ();
6666 };
6767
You can’t perform that action at this time.
0 commit comments