Skip to content
Snippets Groups Projects
Commit 27c10013 authored by Walter Lampl's avatar Walter Lampl
Browse files

Merge branch 'leak.MuonEventAthenaPool-20201222' into 'master'

MuonEventAthenaPool: Fix memory leak.

See merge request !39382
parents 8bae4cc6 88921f0b
No related branches found
No related tags found
No related merge requests found
/* /*
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" #include "MuonRDO/MdtCsm.h"
...@@ -15,6 +15,10 @@ MdtCsmCnv_p1::persToTrans(const MdtCsm_p1* persColl, MdtCsm* transColl, MsgStrea ...@@ -15,6 +15,10 @@ MdtCsmCnv_p1::persToTrans(const MdtCsm_p1* persColl, MdtCsm* transColl, MsgStrea
persColl->m_SubDetId, persColl->m_SubDetId,
persColl->m_MrodId, persColl->m_MrodId,
persColl->m_CsmId); 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 // Invoke vector converter from the base template
MdtCsm_Cnvp1_base_t::persToTrans( persColl, transColl, log ); MdtCsm_Cnvp1_base_t::persToTrans( persColl, transColl, log );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment