correcting small memory leak, removing unnecessary pointer checks (Theo)
authorrichterm <richterm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 22 Mar 2011 11:21:58 +0000 (11:21 +0000)
committerrichterm <richterm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 22 Mar 2011 11:21:58 +0000 (11:21 +0000)
HLT/TRD/AliHLTTRDCalibFitComponent.cxx
HLT/TRD/AliHLTTRDCalibrationComponent.cxx
HLT/TRD/AliHLTTRDClusterizerComponent.cxx

index 8df13c1d095ef32785094acb942cdcb1de4ff0e0..dfcdd38b44693bfd2d0cb6739e2c61234dfc6001 100644 (file)
@@ -353,11 +353,11 @@ Int_t AliHLTTRDCalibFitComponent::EORCalibration()
   coefdrift->SetName("coefdrift");
   coefdriftsecond->SetName("coefdriftsecond");
   coeft0->SetName("coeft0");
-  if(coefgain) fAfterRunArray->Add(coefgain);
-  if(coefprf) fAfterRunArray->Add(coefprf);
-  if(coefdrift) fAfterRunArray->Add(coefdrift);
-  if(coefdriftsecond) fAfterRunArray->Add(coefdriftsecond);
-  if(coeft0) fAfterRunArray->Add(coeft0);
+  fAfterRunArray->Add(coefgain);
+  fAfterRunArray->Add(coefprf);
+  fAfterRunArray->Add(coefdrift);
+  fAfterRunArray->Add(coefdriftsecond);
+  fAfterRunArray->Add(coeft0);
   
 
   if(coefgain||coefprf||coefdrift||coeft0||coefdriftsecond) {
index b59eb284604ed208dbeb3a07c8cb1608316e6e82..6a4b618ee852b2fe280bc130e31c6e960be30131 100644 (file)
@@ -568,12 +568,11 @@ Int_t AliHLTTRDCalibrationComponent::EORCalibration()
   coefdrift->SetName("coefdrift");
   coefdriftsecond->SetName("coefdriftsecond");
   coeft0->SetName("coeft0");
-  if(coefgain) fAfterRunArray->Add(coefgain);
-  if(coefprf) fAfterRunArray->Add(coefprf);
-  if(coefdrift) fAfterRunArray->Add(coefdrift);
-  if(coefdriftsecond) fAfterRunArray->Add(coefdriftsecond);
-  if(coeft0) fAfterRunArray->Add(coeft0);
-  
+  fAfterRunArray->Add(coefgain);
+  fAfterRunArray->Add(coefprf);
+  fAfterRunArray->Add(coefdrift);
+  fAfterRunArray->Add(coefdriftsecond);
+  fAfterRunArray->Add(coeft0);
 
   if(coefgain||coefprf||coefdrift||coeft0||coefdriftsecond) {
     PushBack(fAfterRunArray, AliHLTTRDDefinitions::fgkEORCalibrationDataType);
index e3ffb23ed2517b3f5fb919ea499fe4b4942f4a49..05965f543b74021f6e35b12ca9e5393f074d4a77 100644 (file)
@@ -188,7 +188,6 @@ int AliHLTTRDClusterizerComponent::DoDeinit()
   fReconstructor->SetClusters(0x0);
   delete fReconstructor;
   fReconstructor = 0x0;
-  return 0;
 
   if (fRecoParam)
     {
@@ -196,6 +195,8 @@ int AliHLTTRDClusterizerComponent::DoDeinit()
       delete fRecoParam;
       fRecoParam = 0;
     }
+
+  return 0;
 }
 
 int AliHLTTRDClusterizerComponent::DoEvent( const AliHLTComponentEventData& evtData,