lib/h3/regions.rb in h3-3.3.1 vs lib/h3/regions.rb in h3-3.4.0
- old
+ new
@@ -140,9 +140,11 @@
h3_set = H3Indexes.with_contents(h3_indexes)
linked_geo_polygon = LinkedGeoPolygon.new
Bindings::Private.h3_set_to_linked_geo(h3_set, h3_indexes.size, linked_geo_polygon)
extract_linked_geo_polygon(linked_geo_polygon).first
+ ensure
+ Bindings::Private.destroy_linked_polygon(linked_geo_polygon)
end
private
def extract_linked_geo_polygon(linked_geo_polygon)