Skip to content

Commit

Permalink
Fix memory leak in ogr provider
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Jun 15, 2013
1 parent 9fc01a6 commit 5cbfe07
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/providers/ogr/qgsogrfeatureiterator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5cbfe07

Please sign in to comment.