]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TPC/AliTPCPreprocessorOnline.cxx
Always delete TObjArrays created by TString::Tokenize (Ruben)
[u/mrichter/AliRoot.git] / TPC / AliTPCPreprocessorOnline.cxx
index 2fc2c80e7be9e902945748beb8b79287b51e7af4..f61f08c13caaafe68697b6f1118b433c28e1b822 100644 (file)
@@ -178,6 +178,7 @@ void AliTPCPreprocessorOnline::AddComponent(TObject *obj) {
       TObjArray *stokens = objName.Tokenize("_ROC");
       TString rocNumber(""); 
       if (stokens->GetEntriesFast()>1) rocNumber = ((TObjString*)stokens->At(1))->GetString();
+      delete stokens;
       Int_t iroc = -1;
       if (rocNumber.IsAlnum()) iroc = rocNumber.Atoi();