Do not delete the data members of TGenerator
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 13 Jul 2005 08:04:11 +0000 (08:04 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 13 Jul 2005 08:04:11 +0000 (08:04 +0000)
THerwig/THerwig6.cxx

index 5c8b112..74acce0 100644 (file)
@@ -105,13 +105,7 @@ THerwig6::THerwig6() : TGenerator("Herwig6","Herwig6") {
 //------------------------------------------------------------------------------
  THerwig6::~THerwig6()
  {
-// Destroys the object, deletes and disposes all TParticles currently on list.
-
-    if (fParticles) {
-      fParticles->Delete();
-      delete fParticles;
-      fParticles = 0;
-   }
+   // Destructor. The data members of TGenerator are delete by itself
  }
 
 //______________________________________________________________________________