]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Increase reference-count in initialization of global frames and palettes.
authormtadel <mtadel@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 15 Mar 2007 11:55:00 +0000 (11:55 +0000)
committermtadel <mtadel@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 15 Mar 2007 11:55:00 +0000 (11:55 +0000)
EVE/Alieve/ITSModule.cxx

index 62b6f8a1da7246f903cf4c8741fa4e1a81024c7e..f4afeac5ddaa73cf8bf4710cb45691821e0abed7 100644 (file)
@@ -115,11 +115,22 @@ void ITSModule::SetID(Int_t gid)
 
   if (gid < fInfo->fGeom->GetStartSPD() || gid > fInfo->fGeom->GetLastSSD())
     throw(eH + Form("%d is not valid. ID range from %d to %d", gid,
-                    fInfo->fGeom->GetStartSPD(), fInfo->fGeom->GetLastSSD()));
+                   fInfo->fGeom->GetStartSPD(), fInfo->fGeom->GetLastSSD()));
 
   fID = gid;
 
-  if (!fgStaticInitDone) InitStatics(fInfo);
+  if (!fgStaticInitDone) {
+    InitStatics(fInfo);
+    
+    fgSPDFrameBox->IncRefCount(this);
+    fgSPDPalette->IncRefCount();
+  
+    fgSDDFrameBox->IncRefCount(this);
+    fgSDDPalette->IncRefCount();
+
+    fgSSDFrameBox->IncRefCount(this);
+    fgSSDPalette->IncRefCount();
+  }
 
   fInfo->fGeom->GetModuleId(fID, fLayer, fLadder, fDet);
   TString strLadder = "Ladder";