Browse Source

Vlib: dox: note about freeing

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@52319 15284696-431f-4ddb-bdfa-cd5b030d7da7
Vaclav Petras 12 years ago
parent
commit
c69464e8a2
2 changed files with 4 additions and 0 deletions
  1. 2 0
      lib/vector/Vlib/cats.c
  2. 2 0
      lib/vector/Vlib/line.c

+ 2 - 0
lib/vector/Vlib/cats.c

@@ -30,6 +30,8 @@ struct line_cats *Vect__new_cats_struct(void);
 
 
    This structure is used for reading and writing vector cats. The
    This structure is used for reading and writing vector cats. The
    library routines handle all memory allocation.
    library routines handle all memory allocation.
+   
+   To free allocated memory call Vect_destroy_cats_struct().
 
 
    \return struct line_cats *
    \return struct line_cats *
    \return NULL on error
    \return NULL on error

+ 2 - 0
lib/vector/Vlib/line.c

@@ -35,6 +35,8 @@ struct line_pnts *Vect__new_line_struct(void);
   polygons.  The library routines handle all memory allocation.  If 3
   polygons.  The library routines handle all memory allocation.  If 3
   lines in memory are needed at the same time, then simply 3 line_pnts
   lines in memory are needed at the same time, then simply 3 line_pnts
   structures have to be used.
   structures have to be used.
+  
+  To free allocated memory call Vect_destroy_line_struct().
 
 
   Calls G_fatal_error() on error.
   Calls G_fatal_error() on error.