]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Added deleting of iterator in FirstPad() method (fixing memory leak)
authorivana <ivana@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 21 Sep 2005 14:43:04 +0000 (14:43 +0000)
committerivana <ivana@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 21 Sep 2005 14:43:04 +0000 (14:43 +0000)
MUON/AliMUONSt12QuadrantSegmentation.cxx

index 201fb3ec578620c74481d2ea1d157bce1b2c3b0b..036e72b31872ea200f0f1077149cfa444e223346 100644 (file)
@@ -442,6 +442,9 @@ void  AliMUONSt12QuadrantSegmentation::FirstPad(Float_t xhit, Float_t yhit, Floa
   if (dx == 0.)  dx = 0.01;
   if (dy == 0.)  dy = 0.01;
   
+  // Delete previous iterator
+  delete  fSectorIterator;
+  
   fSectorIterator 
     = fSectorSegmentation
         ->CreateIterator(AliMpArea(TVector2(fXhit/fgkLengthUnit, fYhit/fgkLengthUnit),