[QGIS Commit] r8136 - trunk/qgis/src/providers/postgres
svn_qgis at osgeo.org
svn_qgis at osgeo.org
Mon Feb 11 12:18:22 EST 2008
Author: mhugent
Date: 2008-02-11 12:18:22 -0500 (Mon, 11 Feb 2008)
New Revision: 8136
Modified:
trunk/qgis/src/providers/postgres/qgspostgresprovider.cpp
Log:
Fixed a memory leak in postgres provider (that was caused by my own modifications a week ago)
Modified: trunk/qgis/src/providers/postgres/qgspostgresprovider.cpp
===================================================================
--- trunk/qgis/src/providers/postgres/qgspostgresprovider.cpp 2008-02-11 10:39:40 UTC (rev 8135)
+++ trunk/qgis/src/providers/postgres/qgspostgresprovider.cpp 2008-02-11 17:18:22 UTC (rev 8136)
@@ -435,7 +435,7 @@
if(mFetchGeom)
{
QgsGeometry* featureGeom = mFeatureQueue.front().geometryAndOwnership();
- feature.setGeometryAndOwnership(featureGeom->wkbBuffer(), featureGeom->wkbSize());
+ feature.setGeometry(featureGeom);
}
else
{
More information about the QGIS-commit
mailing list