[GRASS-SVN] r38950 - grass/trunk/vector/v.label.sa
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Sep 2 17:09:40 EDT 2009
Author: neteler
Date: 2009-09-02 17:09:40 -0400 (Wed, 02 Sep 2009)
New Revision: 38950
Modified:
grass/trunk/vector/v.label.sa/labels.c
grass/trunk/vector/v.label.sa/v.label.sa.html
Log:
leak less memory; url fix
Modified: grass/trunk/vector/v.label.sa/labels.c
===================================================================
--- grass/trunk/vector/v.label.sa/labels.c 2009-09-02 21:09:17 UTC (rev 38949)
+++ grass/trunk/vector/v.label.sa/labels.c 2009-09-02 21:09:40 UTC (rev 38950)
@@ -974,6 +974,8 @@
flatness /= sqrt((x2 - x0) * (x2 - x0) + (y2 - y0) * (y2 - y0)); /* this is d'' */
flatness = (flatness * flatness) / (ideal_distance * ideal_distance);
+
+ Vect_destroy_line_struct(line);
return flatness;
}
@@ -1086,6 +1088,7 @@
sqrt(v.x * v.x + v.y * v.y)));
lineover += 1.0 + 9.0 * cosvb;
}
+ Vect_destroy_line_struct(line);
}
Vect_destroy_list(il);
Modified: grass/trunk/vector/v.label.sa/v.label.sa.html
===================================================================
--- grass/trunk/vector/v.label.sa/v.label.sa.html 2009-09-02 21:09:17 UTC (rev 38949)
+++ grass/trunk/vector/v.label.sa/v.label.sa.html 2009-09-02 21:09:40 UTC (rev 38950)
@@ -29,8 +29,7 @@
<A HREF="v.labels.html">d.label</A><br>
<A HREF="d.labels.html">d.labels</A><br>
<A HREF="ps.map.html">ps.map</A>
-<A href="http://en.wikipedia.org/Simulated_Annealing">Wikipedia article on
-simulated annealing</A>
+<A href="http://en.wikipedia.org/wiki/Simulated_Annealing">Wikipedia article on simulated annealing</A>
</EM><br>
<H2>AUTHOR</H2>
More information about the grass-commit
mailing list