Skip to content

Commit

Permalink
Merge pull request cms-sw#1906 from fwyzard/fix_for_1849
Browse files Browse the repository at this point in the history
Reco fixes -- Minimal revert of the double delete introduced by 10a2578
  • Loading branch information
ktf committed Dec 19, 2013
2 parents ce8a4ae + e7c8fe4 commit 9a55682
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ PixelTrackReconstruction::PixelTrackReconstruction(const ParameterSet& cfg,

PixelTrackReconstruction::~PixelTrackReconstruction()
{
delete theRegionProducer; theRegionProducer = nullptr;
halt();
}

Expand All @@ -74,7 +75,6 @@ void PixelTrackReconstruction::halt()
delete theFitter; theFitter=0;
delete theCleaner; theCleaner=0;
delete theGenerator; theGenerator=0;
delete theRegionProducer; theRegionProducer=0;
delete theMerger_; theMerger_=0;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,10 @@ SeedGeneratorFromRegionHitsEDProducer::SeedGeneratorFromRegionHitsEDProducer(

SeedGeneratorFromRegionHitsEDProducer::~SeedGeneratorFromRegionHitsEDProducer()
{
delete theRegionProducer; theRegionProducer = nullptr;
}

void SeedGeneratorFromRegionHitsEDProducer::endRun(edm::Run const&run, const edm::EventSetup& es) {
delete theRegionProducer;
delete theGenerator;
}

Expand Down

0 comments on commit 9a55682

Please sign in to comment.