Memory leak corrected (B.Nilsen)
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 9 Oct 2001 18:03:33 +0000 (18:03 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 9 Oct 2001 18:03:33 +0000 (18:03 +0000)
ITS/AliITSsimulationSDD.cxx

index 5dc1dc6a9e4d4e549f0b9415962b14c2bd340d15..4c3322ca04da2e92b9caddfc78bee596df5118b4 100644 (file)
@@ -346,6 +346,7 @@ void AliITSsimulationSDD::SDigitiseModule(AliITSmodule *mod,Int_t md,Int_t ev){
     WriteSDigits(pList);
 
     // clean memory
+    delete pList;
     alist->Delete();
     delete alist;
     padr->Delete();
@@ -382,6 +383,7 @@ void AliITSsimulationSDD::DigitiseModule(AliITSmodule *mod,Int_t md,Int_t ev){
     FinishDigits(alist);
 
     // clean memory
+    delete pList;
     alist->Delete();
     delete alist;
     padr->Delete();