]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PWG4/PartCorrBase/AliMCAnalysisUtils.cxx
Many fixes:
[u/mrichter/AliRoot.git] / PWG4 / PartCorrBase / AliMCAnalysisUtils.cxx
index f03481bd1b87758c3ed9970cb5b3e867bf452085..96daf87aa230c322d2a45d5f853b9a3696a02f8c 100755 (executable)
@@ -157,7 +157,7 @@ Int_t AliMCAnalysisUtils::CheckOriginInStack(const Int_t *labels, const Int_t nl
     if(fDebug > 0 && label < 8 ) printf("AliMCAnalysisUtils::CheckOriginInStack() - Mother is parton %d\n",iParent);
     
     //GrandParent of the entity
-    TParticle * parent = new TParticle ;
+    TParticle * parent = NULL;
     Int_t pPdg = -1;
     Int_t pStatus =-1;
     if(iParent >= 0){