Skip to content
Permalink
Browse files

Fix memory leak in ogr provider

  • Loading branch information
m-kuhn committed Jun 15, 2013
1 parent 9fc01a6 commit 5cbfe078811f50a55697e7a0cf4f8181e4ef506c
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/providers/ogr/qgsogrfeatureiterator.cpp
@@ -101,7 +101,8 @@ bool QgsOgrFeatureIterator::nextFeature( QgsFeature& feature )
return false;
}

readFeature( fet, feature );
if ( readFeature( fet, feature ) )
OGR_F_Destroy( fet );

feature.setValid( true );
close(); // the feature has been read: we have finished here

0 comments on commit 5cbfe07

Please sign in to comment.
You can’t perform that action at this time.