From: kowal2 Date: Thu, 5 Oct 2000 16:01:49 +0000 (+0000) Subject: Corrected for memory leaks. X-Git-Url: http://git.uio.no/git/?a=commitdiff_plain;h=c4aa864895924bdb6b1db46edbaee4b65c0081f9;p=u%2Fmrichter%2FAliRoot.git Corrected for memory leaks. --- diff --git a/TPC/AliDigits.cxx b/TPC/AliDigits.cxx index f22c53f940e..a1c2fdc8d0a 100644 --- a/TPC/AliDigits.cxx +++ b/TPC/AliDigits.cxx @@ -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; + } + } diff --git a/TPC/AliSimDigits.cxx b/TPC/AliSimDigits.cxx index 338ff2e0fc6..a3fbba53f3e 100644 --- a/TPC/AliSimDigits.cxx +++ b/TPC/AliSimDigits.cxx @@ -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 @@ -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; + } }