]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Corrected for memory leaks.
authorkowal2 <kowal2@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 5 Oct 2000 16:01:49 +0000 (16:01 +0000)
committerkowal2 <kowal2@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 5 Oct 2000 16:01:49 +0000 (16:01 +0000)
TPC/AliDigits.cxx
TPC/AliSimDigits.cxx

index f22c53f940ea38f4c18e9765e6f5d48da151ba73..a1c2fdc8d0acd465e9a20bbb85aacdfe3b8246e4 100644 (file)
@@ -16,6 +16,9 @@
 /*
 
 $Log$
+Revision 1.3  2000/06/30 12:07:49  kowal2
+Updated from the TPC-PreRelease branch
+
 Revision 1.2.4.3  2000/06/26 07:39:42  kowal2
 Changes to obey the coding rules
 
@@ -110,8 +113,13 @@ AliDigits::~AliDigits()
 {
   //
   //default destructor
-  if (fIndex !=0 ) fIndex->Delete();;
-  if (fElements != 0) fElements->Delete();
+  if (fIndex !=0 ) {
+    delete fIndex;
+  }
+  if (fElements != 0) {
+    delete fElements;
+  }
+  
   
 }
 
index 338ff2e0fc633bbb5dfb08bb014d786aaea3176b..a3fbba53f3e399cfe0b4703bfdb0778b87dc153f 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.3  2000/06/30 12:07:49  kowal2
+Updated from the TPC-PreRelease branch
+
 Revision 1.2.4.3  2000/06/26 07:39:42  kowal2
 Changes to obey the coding rules
 
@@ -58,6 +61,7 @@ Digits handling in a new data structure
 #include "AliDigits.h"
 #include "AliSimDigits.h"
 #include "AliTPC.h"
+#include <TClonesArray.h>
 
 
 
@@ -75,9 +79,13 @@ AliSimDigits::AliSimDigits()
 }
 AliSimDigits::~AliSimDigits()
 {
-  //  AliDigits::Invalidate();
-  if (fTracks != 0) fTracks->Delete();
-  if (fTrIndex != 0) fTrIndex->Delete();  
+
+  if (fTracks != 0) {
+    delete fTracks;
+  }
+  if (fTrIndex != 0) { 
+    delete fTrIndex;
+  } 
 
 }