]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PWGLF/SPECTRA/PiKaPr/TestAOD/AliSpectraBothHistoManager.cxx
adding proper destructors and some small changes in analysis macro
[u/mrichter/AliRoot.git] / PWGLF / SPECTRA / PiKaPr / TestAOD / AliSpectraBothHistoManager.cxx
index 9f23e3cd1211b032f555e375d8c2e699dd426957..b38113a02f8e1f325d01c84b4f00beb62ce74666 100644 (file)
@@ -77,7 +77,15 @@ AliSpectraBothHistoManager::AliSpectraBothHistoManager(const char *name,Int_t nr
    
   TH1::AddDirectory(oldStatus);
 }
-
+//_______________________________________________________________________________________
+AliSpectraBothHistoManager::~AliSpectraBothHistoManager()
+{
+       if (fOutputList) 
+       { 
+               fOutputList->Delete();
+               delete fOutputList;
+       }
+}
 //_______________________________________________________
 
 TH2F* AliSpectraBothHistoManager::BookPtGenHistogram(const char * name)