Skip to content

Commit 5f706ab

Browse files
committed
move delete of energy corrector in destructor
1 parent bb373ea commit 5f706ab

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)