]> granicus.if.org Git - postgis/commitdiff
Fix a mistake in my refactoring of the AsGML() patch for GML3 support - the detoasted...
authorMark Cave-Ayland <mark.cave-ayland@siriusit.co.uk>
Fri, 28 Sep 2007 10:18:23 +0000 (10:18 +0000)
committerMark Cave-Ayland <mark.cave-ayland@siriusit.co.uk>
Fri, 28 Sep 2007 10:18:23 +0000 (10:18 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@2709 b70326c6-7e19-0410-871a-916f4a2858ee

lwgeom/lwgeom_gml.c

index 2e7a52ce4fee7bf7bb13f2433e90aed889f3691d..12ff04f4b8394c53840254c03f93f59143290f49 100644 (file)
@@ -103,7 +103,7 @@ Datum LWGEOM_asGML(PG_FUNCTION_ARGS)
        else
          gml = geometry_to_gml3(SERIALIZED_FORM(geom), srs);
        
-       PG_FREE_IF_COPY(geom, 0);
+       PG_FREE_IF_COPY(geom, 1);
 
        len = strlen(gml) + VARHDRSZ;