Bug in GeoJSON Library?
Closed this issue · 2 comments
VeeraSrinivasan commented
When you look in GeoJSONSerialization.m, line 97, a c-array with CLLocationCoordinate2D’s is returned. This is then converted into an MKPolygon (Objective-C) using the polygonWithCoordinates:count: class method of MKPolygon. The documentation of that one explicitly states the data is copied. So the c-array keeps floating.
VeeraSrinivasan commented
Thanks Matt for the fast fix. Appreciate it!
On Sun, Sep 7, 2014 at 12:57 PM, Mattt Thompson notifications@github.com
wrote:
malloc without free. Yep, looks like a leak. Fixed by f8ee565
f8ee565
.—
Reply to this email directly or view it on GitHub
#3 (comment)
.