diff --git a/src/Lib/Polygon/polygon.cxx b/src/Lib/Polygon/polygon.cxx index d31af664..1749fb17 100644 --- a/src/Lib/Polygon/polygon.cxx +++ b/src/Lib/Polygon/polygon.cxx @@ -252,7 +252,7 @@ void make_gpc_poly( const FGPolygon& in, gpc_polygon *out ) { } // free alocated memory - delete v_list.vertex; + delete [] v_list.vertex; } diff --git a/src/Lib/Polygon/split-bin.cxx b/src/Lib/Polygon/split-bin.cxx index dde9d041..a1a95141 100644 --- a/src/Lib/Polygon/split-bin.cxx +++ b/src/Lib/Polygon/split-bin.cxx @@ -68,6 +68,9 @@ static void clip_and_write_poly( string root, long int p_index, AreaType area, "Out of range latitude in clip_and_write_poly() = " << c.y() ); } + min.setz( 0.0 ); + max.setz( 0.0 ); + SG_LOG( SG_GENERAL, SG_DEBUG, " (" << min << ") (" << max << ")" ); // set up clipping tile