diff --git a/src/core/providers/ogr/qgsogrproviderconnection.cpp b/src/core/providers/ogr/qgsogrproviderconnection.cpp index 80d6cf10b06b..afea46564676 100644 --- a/src/core/providers/ogr/qgsogrproviderconnection.cpp +++ b/src/core/providers/ogr/qgsogrproviderconnection.cpp @@ -107,12 +107,6 @@ QVariantList QgsOgrProviderResultIterator::nextRowInternal() } } } - else - { - // Release the resources - GDALDatasetReleaseResultSet( mHDS.get(), mOgrLayer ); - mHDS.reset(); - } } return row; }