mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-28 00:17:30 -05:00
Fixed timing/dangling pointer error in delimited text provider
This commit is contained in:
parent
60fcc4d876
commit
308bbb66bd
@ -447,7 +447,7 @@ void QgsDelimitedTextFeatureIterator::fetchAttribute( QgsFeature& feature, int f
|
||||
|
||||
QgsDelimitedTextFeatureSource::QgsDelimitedTextFeatureSource( const QgsDelimitedTextProvider* p )
|
||||
: mGeomRep( p->mGeomRep )
|
||||
, mSubsetExpression( p->mSubsetExpression )
|
||||
, mSubsetExpression( p->mSubsetExpression ? new QgsExpression(p->mSubsetExpression->expression()) : 0 )
|
||||
, mExtent( p->mExtent )
|
||||
, mUseSpatialIndex( p->mUseSpatialIndex )
|
||||
, mSpatialIndex( p->mSpatialIndex ? new QgsSpatialIndex( *p->mSpatialIndex ) : 0 )
|
||||
@ -472,6 +472,7 @@ QgsDelimitedTextFeatureSource::QgsDelimitedTextFeatureSource( const QgsDelimited
|
||||
|
||||
QgsDelimitedTextFeatureSource::~QgsDelimitedTextFeatureSource()
|
||||
{
|
||||
delete mSubsetExpression;
|
||||
delete mSpatialIndex;
|
||||
delete mFile;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user