Skip to content

Commit 4774749

Browse files
committed
Added PrimaryGenerator pointer deletion in destructor
1 parent 612db1b commit 4774749

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

Generators/include/Generators/GeneratorService.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,6 @@ class GeneratorService
6060
{
6161

6262
public:
63-
~GeneratorService()
64-
{
65-
o2::eventgen::GeneratorFactory::cleanup();
66-
};
67-
6863
void initService(std::string const& generatorName,
6964
std::string const& triggerName,
7065
VertexOption const& vtxOption);

run/O2PrimaryServerDevice.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ class O2PrimaryServerDevice final : public fair::mq::Device
7373
if (mControlThread.joinable()) {
7474
mControlThread.join();
7575
}
76-
o2::eventgen::GeneratorFactory::cleanup();
76+
delete mPrimGen;
7777
} catch (...) {
7878
}
7979
}

0 commit comments

Comments
 (0)