osmcode / osmcoastline

Extracts coastline data from OpenStreetMap planet file.
https://osmcode.org/osmcoastline/
GNU General Public License v3.0
108 stars 14 forks source link

avoid dereferencing invalidated iterator #5

Closed artemp closed 11 years ago

artemp commented 11 years ago

calling m_start_nodes.erase(sit) invalidates sit, I get

./runtest.sh: line 4: 44719 Segmentation fault: 11  ./osmcoastline --debug --verbose --overwrite --output-lines --output-polygons=both --output-rings -o testdata.db testdata.osm

on os x.