We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
qgis
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
1 parent effb8dc commit 6b80518Copy full SHA for 6b80518
src/providers/ogr/qgsogrfeatureiterator.cpp
@@ -238,13 +238,14 @@ bool QgsOgrFeatureIterator::fetchFeature( QgsFeature& feature )
238
{
239
if ( !readFeature( fet, feature ) )
240
continue;
241
+ else
242
+ OGR_F_Destroy( fet );
243
244
if ( !mRequest.filterRect().isNull() && !feature.constGeometry() )
245
246
247
// we have a feature, end this cycle
248
feature.setValid( true );
- OGR_F_Destroy( fet );
249
return true;
250
251
} // while
0 commit comments