[GRASS-SVN] r38948 -
grass/branches/releasebranch_6_4/vector/v.label.sa
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Sep 2 17:08:59 EDT 2009
Author: neteler
Date: 2009-09-02 17:08:58 -0400 (Wed, 02 Sep 2009)
New Revision: 38948
Modified:
grass/branches/releasebranch_6_4/vector/v.label.sa/description.html
grass/branches/releasebranch_6_4/vector/v.label.sa/labels.c
Log:
leak less memory; url fix
Modified: grass/branches/releasebranch_6_4/vector/v.label.sa/description.html
===================================================================
--- grass/branches/releasebranch_6_4/vector/v.label.sa/description.html 2009-09-02 14:08:14 UTC (rev 38947)
+++ grass/branches/releasebranch_6_4/vector/v.label.sa/description.html 2009-09-02 21:08:58 UTC (rev 38948)
@@ -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>
Modified: grass/branches/releasebranch_6_4/vector/v.label.sa/labels.c
===================================================================
--- grass/branches/releasebranch_6_4/vector/v.label.sa/labels.c 2009-09-02 14:08:14 UTC (rev 38947)
+++ grass/branches/releasebranch_6_4/vector/v.label.sa/labels.c 2009-09-02 21:08:58 UTC (rev 38948)
@@ -1014,6 +1014,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;
}
@@ -1126,6 +1128,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);
More information about the grass-commit
mailing list