From b44896d915819387e1b482d8d857e9c9b36fc7ac Mon Sep 17 00:00:00 2001 From: Maxime Gimeno Date: Mon, 13 Jun 2016 10:40:31 +0200 Subject: [PATCH] Fix - Addition of a destructor for the Volume_plane_intersection. --- .../Polyhedron/Plugins/Mesh_3/Volume_plane_intersection.cpp | 4 ++++ .../Polyhedron/Plugins/Mesh_3/Volume_plane_intersection.h | 1 + 2 files changed, 5 insertions(+) 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; }