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 338b835 commit 8ea4470
Showing 1 changed file with 1 addition and 2 deletions.
@@ -385,6 +385,7 @@ QgsOgrProvider::QgsOgrProvider( QString const & uri )
QgsOgrProvider::~QgsOgrProvider()
{
close();
QgsOgrConnPool::instance()->unref( mFilePath );
}

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

updateExtents();

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

void QgsOgrProvider::reloadData()

0 comments on commit 8ea4470

Please sign in to comment.