[GRASS-SVN] r52363 - grass/branches/develbranch_6/lib/vector/Vlib
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Jul 11 04:00:32 PDT 2012
Author: neteler
Date: 2012-07-11 04:00:31 -0700 (Wed, 11 Jul 2012)
New Revision: 52363
Modified:
grass/branches/develbranch_6/lib/vector/Vlib/cats.c
grass/branches/develbranch_6/lib/vector/Vlib/line.c
Log:
Vlib: dox: note about freeing
Modified: grass/branches/develbranch_6/lib/vector/Vlib/cats.c
===================================================================
--- grass/branches/develbranch_6/lib/vector/Vlib/cats.c 2012-07-11 11:00:09 UTC (rev 52362)
+++ grass/branches/develbranch_6/lib/vector/Vlib/cats.c 2012-07-11 11:00:31 UTC (rev 52363)
@@ -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/develbranch_6/lib/vector/Vlib/line.c
===================================================================
--- grass/branches/develbranch_6/lib/vector/Vlib/line.c 2012-07-11 11:00:09 UTC (rev 52362)
+++ grass/branches/develbranch_6/lib/vector/Vlib/line.c 2012-07-11 11:00:31 UTC (rev 52363)
@@ -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