]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - STEER/AliCorrQADataMakerRec.cxx
Corrections for report #60667: Patch to fix some leaks in STEER
[u/mrichter/AliRoot.git] / STEER / AliCorrQADataMakerRec.cxx
index caae34ec0de9df88bb53198b3ae67a24e1c06170..895cbd20a92f7e9df6c2053a6364d9656aed283f 100644 (file)
@@ -125,8 +125,11 @@ void AliCorrQADataMakerRec::InitRaws()
   // createa ntuple taking all the parameters declared by detectors
   if (fCorrNt[AliRecoParam::AConvert(fEventSpecie)]) 
     return ; 
-  delete fRawsQAList ; // not needed for the time being 
-  fRawsQAList = NULL ; 
+  if ( fRawsQAList ) 
+  {
+    delete[] fRawsQAList ; // not needed for the time being 
+    fRawsQAList = NULL ; 
+  }
   TString varlist("") ;
   for ( Int_t detIndex = 0 ; detIndex < AliQAv1::kNDET ; detIndex++ ) {
     AliQADataMaker * qadm = fqadm[detIndex] ;