]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Set Ownership to avoid mem leaking
authorkleinb <kleinb@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sun, 4 Jul 2010 18:46:16 +0000 (18:46 +0000)
committerkleinb <kleinb@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sun, 4 Jul 2010 18:46:16 +0000 (18:46 +0000)
STEER/AliAODPWG4ParticleCorrelation.cxx

index ef71671a96a862c9a542f432173340e4d11b2abc..956542c0893258f6532212cb1f20c1da39c442c5 100755 (executable)
@@ -36,6 +36,7 @@ ClassImp(AliAODPWG4ParticleCorrelation)
    fListOfObjArrays(new TList)
 {
   // constructor
+  fListOfObjArrays->SetOwner(kTRUE);
 }
 
 //______________________________________________________________________________
@@ -46,6 +47,8 @@ AliAODPWG4ParticleCorrelation::AliAODPWG4ParticleCorrelation(Double_t px, Double
 {
   // constructor
   SetMomentum(new TLorentzVector(px, py, pz, e));
+  fListOfObjArrays->SetOwner(kTRUE);
+
 }
 
 //______________________________________________________________________________
@@ -54,6 +57,8 @@ AliAODPWG4ParticleCorrelation::AliAODPWG4ParticleCorrelation(TLorentzVector & p)
   fLeadingDetector(""),  fLeading(), fCorrJet(), fCorrBkg(), fRefJet(0),  fListOfObjArrays(new TList)
 {
   // constructor
+  fListOfObjArrays->SetOwner(kTRUE);
+
 }
 
 //______________________________________________________________________________
@@ -62,7 +67,8 @@ AliAODPWG4ParticleCorrelation::AliAODPWG4ParticleCorrelation(AliAODPWG4Particle
   fLeadingDetector(""),  fLeading(), fCorrJet(), fCorrBkg(),fRefJet(0),   fListOfObjArrays(new TList)
 {
   // constructor
-  
+  fListOfObjArrays->SetOwner(kTRUE);
+
 }
 
 //______________________________________________________________________________