Skip to content
Permalink
Browse files

Move QgsOgrConnPool::instance()->unref() from QgsOgrProvider::close()…

… to destructor, since we can open()/close() several times
  • Loading branch information
rouault committed May 4, 2016
1 parent 7d70f32 commit fe32ba40b920038e418a653b51a69ce43549e4d9
Showing with 1 addition and 2 deletions.
  1. +1 −2 src/providers/ogr/qgsogrprovider.cpp
@@ -384,6 +384,7 @@ QgsOgrProvider::QgsOgrProvider( QString const & uri )
QgsOgrProvider::~QgsOgrProvider()
{
close();
QgsOgrConnPool::instance()->unref( mFilePath );
}

QgsAbstractFeatureSource* QgsOgrProvider::featureSource() const
@@ -2969,8 +2970,6 @@ void QgsOgrProvider::close()
setProperty( "_debug_open_mode", "invalid" );

updateExtents();

QgsOgrConnPool::instance()->unref( mFilePath );
}

void QgsOgrProvider::reloadData()

0 comments on commit fe32ba4

Please sign in to comment.
You can’t perform that action at this time.