Fix double free
authorakisiel <akisiel@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 23 Jan 2012 14:05:50 +0000 (14:05 +0000)
committerakisiel <akisiel@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 23 Jan 2012 14:05:50 +0000 (14:05 +0000)
PWG2/FEMTOSCOPY/AliFemto/AliFemtoParticle.cxx

index 0427142..a162848 100644 (file)
@@ -405,10 +405,10 @@ AliFemtoParticle& AliFemtoParticle::operator=(const AliFemtoParticle& aParticle)
     
     fPrimaryVertex = aParticle.fPrimaryVertex;
     fSecondaryVertex = aParticle.fSecondaryVertex;
-    if (fHiddenInfo) delete fHiddenInfo;
-    if(aParticle.fHiddenInfo){
-      fHiddenInfo= aParticle.fHiddenInfo->Clone();
-    }
+//     if (fHiddenInfo) delete fHiddenInfo;
+//     if(aParticle.fHiddenInfo){
+//       fHiddenInfo= aParticle.fHiddenInfo->Clone();
+//     }
     
     //   fNominalTpcEntrancePoint = aParticle.fNominalTpcEntrancePoint;
     //   fNominalTpcExitPoint     = aParticle.fNominalTpcExitPoint;