Skip to content

Commit e5ec312

Browse files
author
mhugent
committedFeb 11, 2008
Fixed a memory leak in postgres provider (that was caused by my own modifications a week ago)
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@8136 c8812cc2-4d05-0410-92ff-de0c093fc19c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/providers/postgres/qgspostgresprovider.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ bool QgsPostgresProvider::getNextFeature(QgsFeature& feature)
435435
if(mFetchGeom)
436436
{
437437
QgsGeometry* featureGeom = mFeatureQueue.front().geometryAndOwnership();
438-
feature.setGeometryAndOwnership(featureGeom->wkbBuffer(), featureGeom->wkbSize());
438+
feature.setGeometry(featureGeom);
439439
}
440440
else
441441
{

0 commit comments

Comments
 (0)
Please sign in to comment.