Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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 e2dad8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/qgsvectorfilewriter.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit e2dad8e

Please sign in to comment.