From fe0cd6c99a7b4018f01787afc163b031298e6375 Mon Sep 17 00:00:00 2001
From: Andre Sailer <andre.philippe.sailer@cern.ch>
Date: Thu, 22 Jun 2017 14:39:57 +0200
Subject: [PATCH] Shapes: Tube: fix memory leak

Default constructor of TGeoConeSeg (or any other TGeoShapes) do not
register the object so they are not automatically cleaned up. So we
call the constructor with parameters instead
---
 DDCore/include/DD4hep/Shapes.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/DDCore/include/DD4hep/Shapes.h b/DDCore/include/DD4hep/Shapes.h
index f856e1152..057aba4fc 100644
--- a/DDCore/include/DD4hep/Shapes.h
+++ b/DDCore/include/DD4hep/Shapes.h
@@ -250,7 +250,7 @@ namespace dd4hep {
   /// Intermediate class to overcome drawing probles with the TGeoTubeSeg
   class MyConeSeg: public TGeoConeSeg {
   public:
-    MyConeSeg() : TGeoConeSeg() { }
+    MyConeSeg() : TGeoConeSeg(0.0,0.0,0.0,0.0,0.0,0.0,0.0) { }
     virtual ~MyConeSeg() { }
     double GetRmin() const {        return GetRmin1();      }
     double GetRmax() const {        return GetRmax1();      }
-- 
GitLab