--- PamCut/CollectionActions/Histo2DActions/Histo2DAction/Histo2DAction.h 2009/10/27 10:17:48 1.2 +++ PamCut/CollectionActions/Histo2DActions/Histo2DAction/Histo2DAction.h 2009/10/29 09:42:44 1.3 @@ -145,8 +145,8 @@ /*! Fills the ROOT and the vector histogram. * - * @param value The value of the X coordinate associated to the event. - * @param value The value of the Y coordinate associated to the event. + * @param xValue The value of the X coordinate associated to the event. + * @param yValue The value of the Y coordinate associated to the event. * @param weight The weight which will be applied to the event. */ void Fill(double xValue, double yValue, double weight = 1.); @@ -325,6 +325,9 @@ template Histo2DAction::~Histo2DAction() { + + delete _rootHisto; + _rootHisto = NULL; } template