Skip to content

Commit 579e365

Browse files
committed
Merge pull request cms-sw#2683 from matteosan1/topic_bugfix_photonproducer
move delete of energy corrector in destructor
2 parents 21b8c05 + 5f706ab commit 579e365

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

RecoEgamma/EgammaPhotonProducers/src/PhotonProducer.cc

+1-2
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ PhotonProducer::PhotonProducer(const edm::ParameterSet& config) :
141141

142142
PhotonProducer::~PhotonProducer()
143143
{
144-
144+
delete thePhotonEnergyCorrector_;
145145
//delete energyCorrectionF;
146146
}
147147

@@ -162,7 +162,6 @@ void PhotonProducer::endRun (edm::Run const& r, edm::EventSetup const & theEven
162162

163163
delete thePhotonIsolationCalculator_;
164164
delete thePhotonMIPHaloTagger_;
165-
delete thePhotonEnergyCorrector_;
166165
}
167166

168167

0 commit comments

Comments
 (0)