[ogr] Fix incorrect feature counts after removing subset string, fix leak

This commit is contained in:
Nyall Dawson 2017-11-20 09:25:01 +10:00
parent 6c4a8a246e
commit 163b2e20a8

View File

@ -535,6 +535,8 @@ bool QgsOgrProvider::setSubsetString( const QString &theSQL, bool updateFeatureC
}
else
{
if ( mOgrLayer != mOgrOrigLayer )
QgsOgrProviderUtils::release( mOgrLayer );
mOgrLayer = mOgrOrigLayer;
}
mSubsetString = theSQL;