[geos-commits] [SCM] GEOS branch master updated. 55860550b37fe6d8eb0124c7d78c6edf3653f386

git at osgeo.org git at osgeo.org
Sat Jul 25 09:58:32 PDT 2020


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, master has been updated
       via  55860550b37fe6d8eb0124c7d78c6edf3653f386 (commit)
      from  0f938979b58f9a451670032a7199ece23d52c3c1 (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 55860550b37fe6d8eb0124c7d78c6edf3653f386
Author: Sandro Santilli <strk at kbt.io>
Date:   Sat Jul 25 18:58:07 2020 +0200

    Be more explicit about memory management in noder

diff --git a/include/geos/noding/Noder.h b/include/geos/noding/Noder.h
index dd292fd..414ca07 100644
--- a/include/geos/noding/Noder.h
+++ b/include/geos/noding/Noder.h
@@ -55,6 +55,8 @@ public:
      * others may only add some or none at all.
      *
      * @param segStrings a collection of {@link SegmentString}s to node
+     *        The caller remains responsible for releasing the memory
+     *        associated with the container and its elements.
      */
     virtual void computeNodes(std::vector<SegmentString*>* segStrings) = 0;
 
@@ -62,7 +64,8 @@ public:
      * Returns a collection of fully noded [SegmentStrings](@ref SegmentString).
      * The SegmentStrings have the same context as their parent.
      *
-     * @return a newly allocated std::vector of const SegmentStrings.
+     * @return a newly allocated std::vector of newly allocated
+     *         SegmentStrings (copies of input, if needs be).
      *         Caller is responsible to delete container and elements.
      */
     virtual std::vector<SegmentString*>* getNodedSubstrings() const = 0;

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

Summary of changes:
 include/geos/noding/Noder.h | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)


hooks/post-receive
-- 
GEOS


More information about the geos-commits mailing list