Skip to content
Permalink
Browse files

Data items: Close GDAL dataset when it is not needed

This was leading to situations where QGIS was hitting limit of the maximum open files
  • Loading branch information
wonder-sk committed Jun 26, 2015
1 parent b80a1bc commit 7532000706ecdfbda115744b3f31ceead124e869
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/providers/gdal/qgsgdaldataitems.cpp
@@ -43,7 +43,10 @@ QgsGdalLayerItem::QgsGdalLayerItem( QgsDataItem* parent,
GDALDatasetH hDS = GDALOpen( TO8F( mPath ), GA_Update );

if ( hDS )
{
mCapabilities |= SetCrs;
GDALClose( hDS );
}
}

QgsGdalLayerItem::~QgsGdalLayerItem()

0 comments on commit 7532000

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