From e0236229a19996869ae471a0ce4e6192bbfbe23a Mon Sep 17 00:00:00 2001
From: Thomas Fischer <thomas.fischer@ufz.de>
Date: Wed, 16 Mar 2016 10:42:06 +0100
Subject: [PATCH] [FileIO] Delete the node polygon fixes mem leak.

---
 FileIO/GmshIO/GMSHPolygonTree.cpp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/FileIO/GmshIO/GMSHPolygonTree.cpp b/FileIO/GmshIO/GMSHPolygonTree.cpp
index 9f5e1b218b1..95592b68b85 100644
--- a/FileIO/GmshIO/GMSHPolygonTree.cpp
+++ b/FileIO/GmshIO/GMSHPolygonTree.cpp
@@ -42,6 +42,8 @@ GMSHPolygonTree::~GMSHPolygonTree()
 		for (auto * polyline : _plys)
 			delete polyline;
 	}
+	// member of GeoLib::SimplePolygonTree, but the ownership is not transmitted
+	delete _node_polygon;
 }
 
 bool GMSHPolygonTree::insertStation(GeoLib::Point const* station)
-- 
GitLab