Deleting track references in the destructor
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 7 Apr 2003 13:28:36 +0000 (13:28 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 7 Apr 2003 13:28:36 +0000 (13:28 +0000)
STEER/AliDetector.cxx

index a9d736e577654c202e2af5b40fac0868b505af03..b6b54d54c20d61e675492612d4db71a264de9601 100644 (file)
@@ -142,6 +142,12 @@ AliDetector::~AliDetector()
     delete fDigits;
     fDigits     = 0;
   }
+  // Delete track references
+  if (fTrackReferences) {
+    fTrackReferences->Delete();
+    delete fTrackReferences;
+    fTrackReferences     = 0;
+  }
   if (fDigitsFile) delete [] fDigitsFile;
 }