From c07cbb354be937e26f8a2ce11973639d9f327a64 Mon Sep 17 00:00:00 2001 From: Penny Slocum Date: Wed, 20 Dec 2023 10:37:29 -0500 Subject: [PATCH] KGeoBag deinitialization (#92) * Delete KGInterface instance when components are deinitialized. --------- Co-authored-by: Noah Oblath Co-authored-by: Penelope L. Slocum of group heeger --- Kassiopeia/Geometry/Source/KSGeoSpace.cxx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Kassiopeia/Geometry/Source/KSGeoSpace.cxx b/Kassiopeia/Geometry/Source/KSGeoSpace.cxx index aaa39cf24..1c682497a 100644 --- a/Kassiopeia/Geometry/Source/KSGeoSpace.cxx +++ b/Kassiopeia/Geometry/Source/KSGeoSpace.cxx @@ -231,6 +231,8 @@ void KSGeoSpace::DeinitializeComponent() for (tGeoSideIt = fSides.begin(); tGeoSideIt != fSides.end(); tGeoSideIt++) { (*tGeoSideIt)->Deinitialize(); } + + KGeoBag::KGInterface::DeleteInstance(); return; }