|Reported by:||rblazek||Owned by:|
There is no function to allocate Map_info. If GRASS library is used in another application (QGIS for example) which is compiled by a compiller with different ABI, calls to Vect_ functions using Map_info structure allocated by the other application may result in crash. The problem was discussed here: http://lists.osgeo.org/pipermail/grass-dev/2015-June/075539.html
A patch against trunk r66029 introducing Vect_new_map_struct and Vect_destroy_map_struct is attached. I am not sure what should be a policy for releasing Map_info members.