Another attempt at Coverity report
authorakisiel <akisiel@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 9 Jun 2011 13:16:04 +0000 (13:16 +0000)
committerakisiel <akisiel@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 9 Jun 2011 13:16:04 +0000 (13:16 +0000)
TTherminator/Therminator/Event.cxx

index cd9c585..d1c6217 100644 (file)
@@ -303,8 +303,10 @@ Event::DecayParticles()
          {
            tDecayer->DecayParticle(tFather, &tPart1, &tPart2, &tPart3);
 #ifndef _RESCALE_CHANNELS_
-           if ((!tPart1) && (!tPart2)) {
+           if ((!tPart1) || (!tPart2)) {
              tCount++;
+             if (tPart1) delete tPart1;
+             if (tPart2) delete tPart2;
              continue;
            }
 #endif