Skip to content

Commit

Permalink
Fix memory issue in destruction of StBTofGeometry (#355)
Browse files Browse the repository at this point in the history
  • Loading branch information
genevb authored May 20, 2022
1 parent 05dd002 commit 62374ad
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions StRoot/StBTofUtil/StBTofGeometry.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
#include "StThreeVectorD.hh"
#include "StHelixD.hh"
#include "TVolume.h"
#include "TVolumePosition.h"
#include "TVolumeView.h"
#include "TVolumeViewIter.h"
#include "StMaker.h"
Expand All @@ -49,7 +48,6 @@ class StBTofGeomTray;
class StBTofGeomSensor;
class StBTofGeometry;

class TVolumeView;
class TGeoPhysicalNode;
class TGeoManager;

Expand Down Expand Up @@ -92,8 +90,8 @@ class StBTofNode : public TObject {
StBTofNode() {}
~StBTofNode() {
if ( TestBit(kIsOwner) ) {
if (pView != fView->GetPosition()) delete pView;
delete fView;
delete pView;
delete mMasterNode;
delete mTVolume;
delete mTShape;
Expand Down

0 comments on commit 62374ad

Please # to comment.