[GRASS-SVN] r52362 - grass/branches/releasebranch_6_4/lib/vector/Vlib

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Jul 11 04:00:09 PDT 2012


Author: neteler
Date: 2012-07-11 04:00:09 -0700 (Wed, 11 Jul 2012)
New Revision: 52362

Modified:
   grass/branches/releasebranch_6_4/lib/vector/Vlib/cats.c
   grass/branches/releasebranch_6_4/lib/vector/Vlib/line.c
Log:
Vlib: dox: note about freeing

Modified: grass/branches/releasebranch_6_4/lib/vector/Vlib/cats.c
===================================================================
--- grass/branches/releasebranch_6_4/lib/vector/Vlib/cats.c	2012-07-10 16:17:36 UTC (rev 52361)
+++ grass/branches/releasebranch_6_4/lib/vector/Vlib/cats.c	2012-07-11 11:00:09 UTC (rev 52362)
@@ -33,6 +33,8 @@
 
    This structure is used for reading and writing vector cats. The
    library routines handle all memory allocation.
+   
+   To free allocated memory call Vect_destroy_cats_struct().
 
    \return struct line_cats *
    \return NULL on error

Modified: grass/branches/releasebranch_6_4/lib/vector/Vlib/line.c
===================================================================
--- grass/branches/releasebranch_6_4/lib/vector/Vlib/line.c	2012-07-10 16:17:36 UTC (rev 52361)
+++ grass/branches/releasebranch_6_4/lib/vector/Vlib/line.c	2012-07-11 11:00:09 UTC (rev 52362)
@@ -30,7 +30,7 @@
    This structure is used for reading and writing vector lines and
    polygons.  The library routines handle all memory allocation.  If
    3 lines in memory are needed at the same time, then simply 3
-   line_pnts structures have to be used
+   line_pnts structures have to be used.
 
    \param void
 
@@ -43,10 +43,12 @@
    \brief Creates and initializes a struct line_pnts.
 
    This structure is used for reading and writing vector lines and
-   polygons.  The library routines handle all memory allocation.  If
-   3 lines in memory are needed at the same time, then simply 3
-   line_pnts structures have to be used
+   polygons.  The library routines handle all memory allocation.  If 3
+   lines in memory are needed at the same time, then simply 3
+   line_pnts structures have to be used.
 
+  To free allocated memory call Vect_destroy_line_struct().
+
    \param void
 
    \return pointer to line_pnts



More information about the grass-commit mailing list