change in the dtor
authorschutz <schutz@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 24 Jun 2008 15:08:33 +0000 (15:08 +0000)
committerschutz <schutz@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 24 Jun 2008 15:08:33 +0000 (15:08 +0000)
STEER/AliQADataMakerSteer.cxx

index 0ce7acf..d6d9a90 100644 (file)
@@ -130,22 +130,22 @@ AliQADataMakerSteer & AliQADataMakerSteer::operator = (const AliQADataMakerSteer
 AliQADataMakerSteer::~AliQADataMakerSteer() 
 {
        // dtor
-  for (UInt_t iDet = 0; iDet < fgkNDetectors; iDet++) {
-         if (IsSelected(AliQA::GetDetName(iDet))) {
+       for (UInt_t iDet = 0; iDet < fgkNDetectors; iDet++) {
+               if (IsSelected(AliQA::GetDetName(iDet))) {
                  fLoader[iDet] = NULL;
                  if (fQADataMaker[iDet]) {
                          (fQADataMaker[iDet])->Finish() ; 
-                         delete fQADataMaker[iDet] ;
+               //        delete fQADataMaker[iDet] ;
                          fQADataMaker[iDet] = NULL ;
                  }
-         }
-  }
-
-  if (fRawReaderDelete) { 
-       fRunLoader = NULL ;
-       delete fRawReader ;
-       fRawReader = NULL ;
-  }
+               }
+       }
+       delete []       fQADataMaker ; 
+       if (fRawReaderDelete) { 
+               fRunLoader = NULL ;
+               delete fRawReader ;
+               fRawReader = NULL ;
+       }
 }
 
 //_____________________________________________________________________________