Skip to content

Commit

Permalink
Remove driver
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanW2 committed Jun 21, 2013
1 parent 0b9d1dc commit 6eadd80
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 1 addition & 2 deletions src/providers/ogr/qgsogrfeatureiterator.cpp
Expand Up @@ -35,7 +35,7 @@ QgsOgrFeatureIterator::QgsOgrFeatureIterator( QgsOgrProvider* p, const QgsFeatur
: QgsAbstractFeatureIterator( request ), P( p ), ogrDataSource(0), ogrLayer(0), ogrDriver(0)
{

ogrDataSource = OGROpen( TO8F( P->filePath() ), false, &ogrDriver );
ogrDataSource = OGROpen( TO8F( P->filePath() ), false, NULL );

if ( P->layerName().isNull() )
{
Expand Down Expand Up @@ -150,7 +150,6 @@ bool QgsOgrFeatureIterator::close()
if ( mClosed )
return false;

OGR_DS_ReleaseResultSet( ogrDataSource, ogrLayer );
OGR_DS_Destroy( ogrDataSource );

mClosed = true;
Expand Down
1 change: 0 additions & 1 deletion src/providers/ogr/qgsogrfeatureiterator.h
Expand Up @@ -51,7 +51,6 @@ class QgsOgrFeatureIterator : public QgsAbstractFeatureIterator

OGRDataSourceH ogrDataSource;
OGRLayerH ogrLayer;
OGRSFDriverH ogrDriver;
};


Expand Down

0 comments on commit 6eadd80

Please sign in to comment.