Skip to content

Commit b0414ad

Browse files
authored
Out of line FairTBuffer destructor (#14265)
1 parent 747fb86 commit b0414ad

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

Framework/Core/include/Framework/TMessageSerializer.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ class FairOutputTBuffer : public TBufferFile
4040
: TBufferFile(TBuffer::kWrite, msg.GetSize() - sizeof(char*), embedInItself(msg), false, fairMQrealloc)
4141
{
4242
}
43+
44+
~FairOutputTBuffer() override;
4345
// Helper function to keep track of the FairMQ message that holds the data
4446
// in the data itself. We can use this to make sure the message can be reallocated
4547
// even if we simply have a pointer to the data. Hopefully ROOT will not play dirty
@@ -60,6 +62,7 @@ class FairInputTBuffer : public TBufferFile
6062
: TBufferFile(TBuffer::kRead, size - sizeof(char*), data + sizeof(char*), false, nullptr)
6163
{
6264
}
65+
~FairInputTBuffer() override;
6366
};
6467

6568
struct TMessageSerializer {

Framework/Core/src/TMessageSerializer.cxx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@
1515

1616
using namespace o2::framework;
1717

18+
FairOutputTBuffer::~FairOutputTBuffer() = default;
19+
FairInputTBuffer::~FairInputTBuffer() = default;
20+
1821
void* FairOutputTBuffer::embedInItself(fair::mq::Message& msg)
1922
{
2023
// The first bytes of the message are used to store the pointer to the message itself

0 commit comments

Comments
 (0)