From e0ebe9b680ecf6f6fb40c25789125073113b4cbe Mon Sep 17 00:00:00 2001 From: Krishna Gadepalli <34969407+kkg4theweb@users.noreply.github.com> Date: Thu, 2 Dec 2021 04:47:51 -0800 Subject: [PATCH] Fix memory leaks (#1839) * Fix memory leaks * Add kkg to authors list --- src/GDSIIgeom.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/GDSIIgeom.cpp b/src/GDSIIgeom.cpp index 3c7d2960b..65a891e8a 100644 --- a/src/GDSIIgeom.cpp +++ b/src/GDSIIgeom.cpp @@ -170,7 +170,11 @@ geometric_object get_GDSII_prism(material_type material, const char *GDSIIFile, dVec polygon = get_polygon(GDSIIFile, Text, Layer); int num_vertices = polygon.size() / 2; +<<<<<<< HEAD std::unique_ptr vertices(new vector3[num_vertices]); +======= + auto vertices = std::make_unique(num_vertices); +>>>>>>> Fix memory leaks (#1839) for (int nv = 0; nv < num_vertices; nv++) { vertices[nv].x = polygon[2 * nv + 0]; vertices[nv].y = polygon[2 * nv + 1];