]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PWG/Tools/AliLatexTable.cxx
Always delete TObjArrays created by TString::Tokenize (Ruben)
[u/mrichter/AliRoot.git] / PWG / Tools / AliLatexTable.cxx
index 9c6b691d119a3b6d82382afbef2c693fe0841db7..3861a5b3b2800c738c7acf867a6a5ba17fba5a8c 100644 (file)
@@ -341,7 +341,7 @@ Int_t * AliLatexTable::GetColWidths() {
       Int_t w = ((TObjString *) cols->At(icol))->String().Length();
       if (w>col_widths[icol]) col_widths[icol] = w;
     }
-    
+    delete cols;
   }
 
   return col_widths;
@@ -397,6 +397,7 @@ void AliLatexTable::PrintTable(Option_t * opt){
 
       }
       printf ("\n");
+      delete cols;
     }
     
     delete [] colWidths;