Memory leak corrected.
authormorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 17 Aug 2007 13:22:11 +0000 (13:22 +0000)
committermorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 17 Aug 2007 13:22:11 +0000 (13:22 +0000)
STEER/AliMCEventHandler.cxx

index 7bef5bd..c284db2 100644 (file)
@@ -335,7 +335,7 @@ void AliMCEventHandler::ReorderAndExpandTreeTR()
 //  Copy the information from different branches into one
 //
 //  TreeTR
-    if (fTmpTreeTR) delete fTmpTreeTR;
+    if (fTmpTreeTR) fTmpTreeTR->Delete();
     if (fTmpFileTR) {
        fTmpFileTR->Close();
        delete fTmpFileTR;