Removing the module from the list of modules in the destructor
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 7 Apr 2003 13:29:27 +0000 (13:29 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 7 Apr 2003 13:29:27 +0000 (13:29 +0000)
STEER/AliModule.cxx

index 5f22964..11884bc 100644 (file)
@@ -136,6 +136,9 @@ AliModule::~AliModule()
   // Destructor
   //
 
+  // Remove this Module from the list of Modules
+  gAlice->Modules()->Remove(this);
+
   // Delete ROOT geometry
   if(fNodes) {
     fNodes->Clear();