]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - STEER/AliModule.cxx
Removing the module from the list of modules in the destructor
[u/mrichter/AliRoot.git] / STEER / AliModule.cxx
index 5f2296434e2cc96b9ff89900cf592ce22b31303e..11884bcd777b202cf4c97e703c3a5886e4f96a28 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();