Skip to content

Commit

Permalink
Added PrimaryGenerator pointer deletion in destructor
Browse files Browse the repository at this point in the history
  • Loading branch information
jackal1-66 committed Dec 13, 2024
1 parent 612db1b commit 4774749
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
5 changes: 0 additions & 5 deletions Generators/include/Generators/GeneratorService.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,6 @@ class GeneratorService
{

public:
~GeneratorService()
{
o2::eventgen::GeneratorFactory::cleanup();
};

void initService(std::string const& generatorName,
std::string const& triggerName,
VertexOption const& vtxOption);
Expand Down
2 changes: 1 addition & 1 deletion run/O2PrimaryServerDevice.h
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ class O2PrimaryServerDevice final : public fair::mq::Device
if (mControlThread.joinable()) {
mControlThread.join();
}
o2::eventgen::GeneratorFactory::cleanup();
delete mPrimGen;
} catch (...) {
}
}
Expand Down

0 comments on commit 4774749

Please sign in to comment.