diff --git a/Polyhedron/demo/Polyhedron/Plugins/Mesh_3/Volume_plane_intersection.cpp b/Polyhedron/demo/Polyhedron/Plugins/Mesh_3/Volume_plane_intersection.cpp index 78eccc625ad..c6b62a9a3d8 100644 --- a/Polyhedron/demo/Polyhedron/Plugins/Mesh_3/Volume_plane_intersection.cpp +++ b/Polyhedron/demo/Polyhedron/Plugins/Mesh_3/Volume_plane_intersection.cpp @@ -38,6 +38,10 @@ struct Volume_plane_intersection_priv }; +Volume_plane_intersection::~Volume_plane_intersection() +{ + delete d; +} void Volume_plane_intersection_priv::computeElements() { diff --git a/Polyhedron/demo/Polyhedron/Plugins/Mesh_3/Volume_plane_intersection.h b/Polyhedron/demo/Polyhedron/Plugins/Mesh_3/Volume_plane_intersection.h index ee7fb14ce23..0b22c305ee4 100644 --- a/Polyhedron/demo/Polyhedron/Plugins/Mesh_3/Volume_plane_intersection.h +++ b/Polyhedron/demo/Polyhedron/Plugins/Mesh_3/Volume_plane_intersection.h @@ -19,6 +19,7 @@ class Volume_plane_intersection Q_OBJECT public: Volume_plane_intersection(float x, float y, float z); + ~Volume_plane_intersection(); bool isFinite() const { return true; } bool isEmpty() const { return false; }