]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - HLT/BASE/AliHLTDataBuffer.cxx
bugfix: correcting sequence of DataBuffer cleanup in order to first release all consu...
[u/mrichter/AliRoot.git] / HLT / BASE / AliHLTDataBuffer.cxx
index a9e044d88f947adb4d5d4c4005fe982e09a02973..43b2ed1d64ae28d34ef69406bd94e483a952a671 100644 (file)
@@ -75,10 +75,11 @@ AliHLTUInt32_t AliHLTDataBuffer::fgEventCount=0;
 AliHLTDataBuffer::~AliHLTDataBuffer()
 {
   // see header file for function documentation
+  CleanupConsumerList();
+
   if (--fgNofInstances<=0) {
     DeleteRawBuffers();
   }
-  CleanupConsumerList();
 }
 
 int AliHLTDataBuffer::SetConsumer(AliHLTComponent* pConsumer)