]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EVE/alice-macros/muon_digits.C
coverity fix
[u/mrichter/AliRoot.git] / EVE / alice-macros / muon_digits.C
index c5dfc42703efeb0dcdea20744530c523a2d82f64..842db1454088dab7f9ae9d488bda7ab1bb318b25 100644 (file)
@@ -106,7 +106,12 @@ void muon_digits()
   digitStore->Clear();
   digitStore->Connect(*dt,0);
   dt->GetEvent(0);
-  if (digitStore->GetSize() == 0 && !gEve->GetKeepEmptyCont()) return;
+  rl->UnloadDigits("MUON");
+  
+  if (digitStore->GetSize() == 0 && !gEve->GetKeepEmptyCont()) {
+    delete digitStore;
+    return;
+  }
   
   // container for graphic representation of digits
   TEveElementList* cont = new TEveElementList("MUON Digits");