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 8ea447065cd634ad1481e3aff575496f7840026c
Showing with 1 addition and 2 deletions.
  1. +1 −2 src/providers/ogr/qgsogrprovider.cpp
@@ -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.
You can’t perform that action at this time.