Skip to content
Permalink
Browse files

Fix leak when writing features with null geometry to vector layers

(cherry-picked from eb4951)
  • Loading branch information
nyalldawson committed Mar 15, 2018
1 parent 1fc184f commit e2dad8e3310884bc2f331c88b4a7cf9755ae8a9c
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 e2dad8e

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