[geos-commits] [SCM] GEOS branch 3.9 updated. d71872bc5a5b9fea27d3d9cf4031953926960af1

git at osgeo.org git at osgeo.org
Wed Jun 16 12:59:43 PDT 2021


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GEOS".

The branch, 3.9 has been updated
       via  d71872bc5a5b9fea27d3d9cf4031953926960af1 (commit)
      from  e615f6ca286cb15bad3f919e066b4b3bbd8cad58 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit d71872bc5a5b9fea27d3d9cf4031953926960af1
Author: Paul Ramsey <pramsey at cleverelephant.ca>
Date:   Wed Jun 16 12:59:37 2021 -0700

    Remove small memory leak introduced in 5c31f0f130c8bedd729fe7785c2be24854d2adfb

diff --git a/src/operation/buffer/OffsetCurveSetBuilder.cpp b/src/operation/buffer/OffsetCurveSetBuilder.cpp
index fc6ef78..4a571ae 100644
--- a/src/operation/buffer/OffsetCurveSetBuilder.cpp
+++ b/src/operation/buffer/OffsetCurveSetBuilder.cpp
@@ -340,6 +340,9 @@ OffsetCurveSetBuilder::addRingSide(const CoordinateSequence* coord,
          * an unwanted artifact in the result, so skip it.
          */
         if (isRingCurveInverted(coord, offsetDistance, curve)) {
+            for (auto* line: lineList) {
+                delete line;
+            }
             return;
         }
     }

-----------------------------------------------------------------------

Summary of changes:
 src/operation/buffer/OffsetCurveSetBuilder.cpp | 3 +++
 1 file changed, 3 insertions(+)


hooks/post-receive
-- 
GEOS


More information about the geos-commits mailing list