]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Fix Coverity
authorakisiel <akisiel@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 13 Dec 2011 15:28:59 +0000 (15:28 +0000)
committerakisiel <akisiel@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 13 Dec 2011 15:28:59 +0000 (15:28 +0000)
PWG2/FEMTOSCOPY/AliFemto/AliFemtoModelGlobalHiddenInfo.cxx

index 315820a723699d527f5529f6efdbb5b578e5389e..8934971d6f9826a2b61e7b18185de57bc3c6ded7 100644 (file)
@@ -38,12 +38,15 @@ AliFemtoModelGlobalHiddenInfo& AliFemtoModelGlobalHiddenInfo::operator=(const Al
   if (this == &aInfo)
     return *this;
 
+  if (fTrueMomentum) delete fTrueMomentum;
   if (aInfo.GetTrueMomentum())
     SetTrueMomentum(aInfo.GetTrueMomentum());
   else SetTrueMomentum(0);
+  if (fEmissionPoint) delete fEmissionPoint;
   if (aInfo.GetEmissionPoint())
     SetEmissionPoint(aInfo.GetEmissionPoint());
   else SetEmissionPoint(0);
+  if (fGlobalEmissionPoint) delete fGlobalEmissionPoint;
   if (aInfo.GetGlobalEmissionPoint())
     SetGlobalEmissionPoint(*aInfo.GetGlobalEmissionPoint());
   else fGlobalEmissionPoint = 0;