Skip to content
Permalink
Browse files

Backport of dangling pointer bug

  • Loading branch information
ccrook committed Mar 22, 2015
1 parent 02fd61b commit 6566ae31d085ce32692494d2d5ae2da4f47f1463
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/providers/delimitedtext/qgsdelimitedtextfeatureiterator.cpp
@@ -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;
}

0 comments on commit 6566ae3

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