From a2690f9acb85b448ec996003aab4fc71c053423f Mon Sep 17 00:00:00 2001 From: sweyh99 Date: Wed, 12 Mar 2025 22:03:06 +0100 Subject: [PATCH 1/2] [EMCAL-525] fix memory leak CellTask --- Modules/EMCAL/src/CellTask.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Modules/EMCAL/src/CellTask.cxx b/Modules/EMCAL/src/CellTask.cxx index aef36f9bad..b4db8e885a 100644 --- a/Modules/EMCAL/src/CellTask.cxx +++ b/Modules/EMCAL/src/CellTask.cxx @@ -1053,8 +1053,6 @@ void CellTask::CellHistograms::fillHistograms(const o2::emcal::Cell& cell, bool ILOG(Info, Support) << "Invalid cell ID: " << e.getCellID() << ENDM; } - o2::quality_control_modules::emcal::DrawGridlines::DrawSMGridInTriggerGeo(mCellOccupancyThr); - o2::quality_control_modules::emcal::DrawGridlines::DrawSMGridInTriggerGeo(mCellOccupancyThrBelow); } void CellTask::CellHistograms::countEvent() @@ -1094,6 +1092,8 @@ void CellTask::CellHistograms::startPublishing(o2::quality_control::core::Object publishOptional(mCellAmplitudeCalib_EMCAL); publishOptional(mCellAmplitudeCalib_DCAL); publishOptional(mCellOccupancy); + o2::quality_control_modules::emcal::DrawGridlines::DrawSMGridInTriggerGeo(mCellOccupancyThr); + o2::quality_control_modules::emcal::DrawGridlines::DrawSMGridInTriggerGeo(mCellOccupancyThrBelow); publishOptional(mCellOccupancyThr); publishOptional(mCellOccupancyThrBelow); publishOptional(mCellOccupancyGood); From 41affa7a16a1a048c5bfd8cb39c01c74bacaddb8 Mon Sep 17 00:00:00 2001 From: sweyh99 Date: Wed, 12 Mar 2025 22:06:56 +0100 Subject: [PATCH 2/2] [EMCAL-525] fix memory leak EMCal CellTask --- Modules/EMCAL/src/CellTask.cxx | 1 - 1 file changed, 1 deletion(-) diff --git a/Modules/EMCAL/src/CellTask.cxx b/Modules/EMCAL/src/CellTask.cxx index b4db8e885a..1f9ad974c6 100644 --- a/Modules/EMCAL/src/CellTask.cxx +++ b/Modules/EMCAL/src/CellTask.cxx @@ -1052,7 +1052,6 @@ void CellTask::CellHistograms::fillHistograms(const o2::emcal::Cell& cell, bool } catch (o2::emcal::InvalidCellIDException& e) { ILOG(Info, Support) << "Invalid cell ID: " << e.getCellID() << ENDM; } - } void CellTask::CellHistograms::countEvent()