Patch problem with destructor
authorfca <fca@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 31 May 2001 06:58:38 +0000 (06:58 +0000)
committerfca <fca@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 31 May 2001 06:58:38 +0000 (06:58 +0000)
ITS/AliITSDetType.cxx

index d24a856..d3941ea 100644 (file)
 
 /*
  $Log$
+ Revision 1.4  2001/05/01 14:47:45  nilsen
+ Fixed destructor so that it destroyes the pointers fSegmentation, fResponse,
+ fSimulation, and fReconst if they have been allocated. The two TStrings
+ fDigClassName and fClustClassName shoud be destroyed automaticaly. This should
+ fix a small memory leak associated with digitization and reconstruction.
+
 */
 
 #include "AliITSDetType.h"
@@ -36,7 +42,7 @@ AliITSDetType::~AliITSDetType(){
     // destructor
 
     if(fSegmentation!=0) delete fSegmentation; fSegmentation = 0;
-    if(fResponse!=0)     delete fResponse;     fResponse     = 0;
+    //    if(fResponse!=0)     delete fResponse;     fResponse     = 0;
     if(fSimulation!=0)   delete fSimulation;   fSimulation   = 0;
     if(fReconst!=0)      delete fReconst;      fReconst      = 0;
 }