Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixed a memory leak in postgres provider (that was caused by my own m…
…odifications a week ago)

git-svn-id: http://svn.osgeo.org/qgis/trunk@8136 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent committed Feb 11, 2008
1 parent 76ada2e commit b3e835e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/providers/postgres/qgspostgresprovider.cpp
Expand Up @@ -435,7 +435,7 @@ bool QgsPostgresProvider::getNextFeature(QgsFeature& feature)
if(mFetchGeom)
{
QgsGeometry* featureGeom = mFeatureQueue.front().geometryAndOwnership();
feature.setGeometryAndOwnership(featureGeom->wkbBuffer(), featureGeom->wkbSize());
feature.setGeometry(featureGeom);
}
else
{
Expand Down

0 comments on commit b3e835e

Please sign in to comment.