diff --git a/MuonSpectrometer/MuonCnv/MuonEventAthenaPool/src/MdtCsmCnv_p1.cxx b/MuonSpectrometer/MuonCnv/MuonEventAthenaPool/src/MdtCsmCnv_p1.cxx index 9696c744307951ca664db99066f372711d7b5b8c..52139bb24cbca925d57da56a46e0c435f92d4a6c 100644 --- a/MuonSpectrometer/MuonCnv/MuonEventAthenaPool/src/MdtCsmCnv_p1.cxx +++ b/MuonSpectrometer/MuonCnv/MuonEventAthenaPool/src/MdtCsmCnv_p1.cxx @@ -1,5 +1,5 @@ /* - Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration + Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration */ #include "MuonRDO/MdtCsm.h" @@ -15,6 +15,10 @@ MdtCsmCnv_p1::persToTrans(const MdtCsm_p1* persColl, MdtCsm* transColl, MsgStrea persColl->m_SubDetId, persColl->m_MrodId, persColl->m_CsmId); + // The assignment above will leave *transColl as a view container. + // But it should own it's elements, so convert it back + // to an owning container. + transColl->clear (SG::OWN_ELEMENTS); // Invoke vector converter from the base template MdtCsm_Cnvp1_base_t::persToTrans( persColl, transColl, log );