Skip to content
Snippets Groups Projects
Commit 1e4c92d2 authored by Emmanuel Christophe's avatar Emmanuel Christophe
Browse files

BUG: set ogr object to NULL after destruction

parent f66ddf8a
No related branches found
No related tags found
No related merge requests found
......@@ -776,7 +776,7 @@ void SHPVectorDataIO<TData>::Write(const VectorDataConstPointerType data)
// ogrFeatures.clear();
OGRDataSource::DestroyDataSource( m_DataSource );
m_DataSource = NULL;
chrono.Stop();
std::cout<<"SHPVectorDataIO: file saved in "<<chrono.GetMeanTime()<<" seconds. (" << m_Kept << " elements)"<<std::endl;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment