Skip to content
Permalink
Browse files

Fix leak when writing features with null geometry to vector layers

  • Loading branch information
nyalldawson committed Mar 11, 2018
1 parent 3315db0 commit eb4951382c07d87614a4b12052f270b04a65c257
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/qgsvectorfilewriter.cpp
@@ -2223,7 +2223,7 @@ gdal::ogr_feature_unique_ptr QgsVectorFileWriter::createFeature( const QgsFeatur
}
else
{
OGR_F_SetGeometry( poFeature.get(), createEmptyGeometry( mWkbType ) );
OGR_F_SetGeometryDirectly( poFeature.get(), createEmptyGeometry( mWkbType ) );
}
}
return poFeature;

0 comments on commit eb49513

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