corrected bug introduced in r49225: cleanup in DoDeinit, was never called due to...
authorrichterm <richterm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 3 May 2011 09:26:54 +0000 (09:26 +0000)
committerrichterm <richterm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 3 May 2011 09:26:54 +0000 (09:26 +0000)
HLT/CALO/AliHLTCaloRawAnalyzerComponentv3.cxx

index 4bb830b..d10e567 100644 (file)
@@ -144,13 +144,17 @@ AliHLTCaloRawAnalyzerComponentv3::DoDeinit()
       delete fAltroRawStreamPtr;
       fAltroRawStreamPtr = 0;
     }
-  return 0;
 
-  delete fRawReaderMemoryPtr;
-  delete fAltroRawStreamPtr;
-  delete fRawDataWriter;
-  delete fSanityInspectorPtr;
+  if (fRawReaderMemoryPtr) delete fRawReaderMemoryPtr;
+  fRawReaderMemoryPtr=NULL;
+  if (fAltroRawStreamPtr) delete fAltroRawStreamPtr;
+  fAltroRawStreamPtr=NULL;
+  if (fRawDataWriter) delete fRawDataWriter;
+  fRawDataWriter=NULL;
+  if (fSanityInspectorPtr) delete fSanityInspectorPtr;
+  fSanityInspectorPtr=NULL;
 
+  return 0;
 }